-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Sniffer in python #268
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
Sniffer in python #268
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please format your code according to PEP8 Guidelines. You can use this.
SNIFFER/readme.md
Outdated
@@ -0,0 +1,7 @@ | |||
# this script is created in python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess you can come up with a better README. Have a look at READMEs of other contributed projects to get some idea.
SNIFFER/sniffer.py
Outdated
# from scapy_http import http | ||
|
||
def get_url(packet): | ||
return packet[http.HTTPRequest].Host + packet[http.HTTPRequest].Path #for detecting urls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment should be above the code, not beside it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sir, I have made changes, do I have to make any other changes?
Description
the script that can sniff HTTP pageg
Fixes #(246)
Have you read the Contributing Guidelines on Pull Requests?
Type of change
Checklist:
README.md
Template for README.md