Created
July 26, 2016 06:42
-
-
Save Yi-Tseng/8861c6d5ea9c5b440050ca03c3379887 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| from scapy.all import sendp | |
| from time import sleep | |
| def main(): | |
| count = 1 | |
| while(1): | |
| p = "\xc0\xff\xee\xffHello%d" % (count, ) | |
| count += 1 | |
| sendp(p, iface = "eth0") | |
| sleep(1) | |
| if __name__ == '__main__': | |
| main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment