Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error #2

Open
marounilabuni opened this issue Aug 12, 2020 · 6 comments
Open

Error #2

marounilabuni opened this issue Aug 12, 2020 · 6 comments

Comments

@marounilabuni
Copy link

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

@overblok
Copy link

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

@marounilabuni
Copy link
Author

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
Copy link

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
Copy link
Author

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
Copy link

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
Copy link
Author

You are great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants