Skip to content

this module is written in python and it allows you to make a socket with given source and destination addresses and ports and thus spoof the source IP.

Notifications You must be signed in to change notification settings

dindibo/Scapy-socket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Scapy-socket

this module is written in python and it allows you to make a socket with given source and destination addresses and ports and spoof the source IP while using a socket API.

Usage:

Suppose a server is running on IP 192.168.1.100 and is listening for TCP connection on port 5555. Assuming this server is an echo server and you want to spoof your IP address to 192.168.1.200 this will be the usage of this module to send and recive "Hello World!":

import scapy_socket as ss

s = ss.socket('192.168.1.100', '192.168.1.137', 8070) s.handshake() s.send('Hello World!') print s.recv() s.fin()

Output:

Hello World!

About

this module is written in python and it allows you to make a socket with given source and destination addresses and ports and thus spoof the source IP.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages