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

Does not complete it's intended use #3

Open
blove-sys opened this issue Apr 24, 2021 · 2 comments
Open

Does not complete it's intended use #3

blove-sys opened this issue Apr 24, 2021 · 2 comments

Comments

@blove-sys
Copy link

blove-sys commented Apr 24, 2021

Howdy! I am not sure why this isn't working, but I did take a screen recording of it in use so maybe you can explain. That video file will be attached. Thank you so much, and keep up the great work!

(The video does not seem to be working)

Screencast.2021-04-24.10.49.47.mp4
@robert
Copy link
Owner

robert commented Apr 26, 2021

For some reason I seem to have made the default be to just log packets instead of running the attack. If you
uncomment https://github.com/robert/how-does-a-tcp-reset-attack-work/blob/master/main.py#L134-L136 does that help?

@paul097958
Copy link

I don't think so. I have already done that, but it still has an error.

WARNING: No IPv4 address found on anpi0 !
WARNING: No IPv4 address found on anpi1 !
WARNING: more No IPv4 address found on en0 !
Starting sniff... 
Traceback (most recent call last):
  File "/Users/paulwang/Desktop/how-does-a-tcp-reset-attack-work/main.py", line 131, in <module>
    t = sniff(
        ^^^^^^
  File "/opt/homebrew/lib/python3.12/site-packages/scapy/sendrecv.py", line 1311, in sniff
    sniffer._run(*args, **kwargs)
  File "/opt/homebrew/lib/python3.12/site-packages/scapy/sendrecv.py", line 1250, in _run
    if lfilter and not lfilter(p):
                       ^^^^^^^^^^
  File "/Users/paulwang/Desktop/how-does-a-tcp-reset-attack-work/main.py", line 53, in f
    src_ip = p[IP].src
             ~^^^^
  File "/opt/homebrew/lib/python3.12/site-packages/scapy/packet.py", line 1327, in __getitem__
    raise IndexError("Layer [%s] not found" % name)
IndexError: Layer [IP] not found

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

3 participants