๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐Ÿ‘จ๐Ÿผ‍๐Ÿ’ป๊ฐœ๋ฐœ/Scapy

Scapy - ํŒŒ์ด์ฌ Scapy๋กœ ์•„์ดํ”ผ ์Šคํ‘ธํ•‘

by Janger 2022. 7. 27.
728x90
๋ฐ˜์‘ํ˜•

 

from scapy.all import *

A = "192.168.1.254" # spoofed source IP address
B = "192.168.1.105" # destination IP address
C = RandShort() # source port
D = 80 # destination port
payload = "yada yada yada" # packet payload

while True:
    spoofed_packet = IP(src=A, dst=B) / TCP(sport=C, dport=D) / payload
    send(spoofed_packet)


์ถœ์ฒ˜:
https://stackoverflow.com/questions/38956401/ip-spoofing-in-python-3

 

IP Spoofing in python 3

Is it possible to send a spoofed packet with another ip source? I've searched on the net and I found out that I need to use scapy library. I have this script that I found: import sys from scapy.all

stackoverflow.com

 

728x90
๋ฐ˜์‘ํ˜•