pankajmore / ip_spoofing

93 stars 47 forks source link

Error #2

Open marounilabuni opened 4 years ago

marounilabuni commented 4 years ago

I have an error on line 30 Can u help me please

overblok commented 4 years ago

What's the error? In which script does the error occur? Which Python Version do you use? (type 'python --version' in command line)

marounilabuni commented 4 years ago

The error in file: ip_spoofing/dos_attack.py

Link: https://github.com/pankajmore/ip_spoofing/blob/master/dos_attack.py

Screenshot_20200812-193900_Pydroid 3.jpg

overblok commented 4 years ago

On line 30, you have to put a small "b" in front of the string A.

Like this: icmp.contains(ImpactPacket.Data(b"A"*156))

If you're using Python2 this should be everything you have to add to get it to work. BUT, I dont know what you're trying to do but it won't be possible to run the ip-spoofing dos attack from your mobile phone.

Let me know if you need any more help.

marounilabuni commented 4 years ago

I did it and got this error

In line 36

Line 36 is: s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_ICMP)

Screenshot_20200812-211021_Pydroid 3.jpg

overblok commented 4 years ago

You need to run the script with root privileges, you either need to root your phone (not recommended) or you try to run it from a computer. If you just need a second device in the network to test it, you can just run both your scripts on the same machine.

marounilabuni commented 4 years ago

You are great