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/env python3 | |
| import os | |
| import time | |
| initRanks = {} | |
| ranks = {} | |
| while True: | |
| for file in os.listdir("./"): |
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/env python3 | |
| h = 0 | |
| m = 0 | |
| while True: | |
| inp = input("+ ") | |
| h += int(inp.split(":")[0]) | |
| m += int(inp.split(":")[1]) | |
| if m > 59: | |
| h += 1 |
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/env python3 | |
| import struct | |
| output = bytearray() | |
| js_comment = b"/*" | |
| js_comment_close = b"*///" | |
| def jpgComment(msg): | |
| jpg_comment = b"\xff\xfe" | |
| length = struct.pack(">h",len(msg)) |
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/env python3 | |
| import re, socket, fileinput, csv, os | |
| regex = re.compile(r'action\=\"pass\".*srcip\=\"([^\"]*)\".*user\=\"([^\"]*)\"') | |
| output = {} | |
| def ip_resolve(ip): | |
| try: | |
| data = socket.gethostbyaddr(ip) | |
| host = repr(data[0]) |
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
| description = [[ | |
| Attempts to retrieve all valid usernames from the HTTP component of Carel | |
| Pl@ntVisor (CarelDataServer.exe). | |
| ]] | |
| --- | |
| -- @usage | |
| -- nmap --script http-carel-data-server-users -p <port> <host> | |
| -- | |
| -- @output |
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/env python3 | |
| import subprocess, json | |
| returnVal = subprocess.run(args=["ip","-j","a"],capture_output=True) | |
| jsonIpObj = json.loads(returnVal.stdout) | |
| maxV4addr,maxV6addr=0,0 | |
| for nic in jsonIpObj: |
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
| def testServer(): | |
| HOST = '0.0.0.0' | |
| PORT = 9999 | |
| while True: | |
| with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: | |
| s.bind((HOST, PORT)) | |
| s.listen() | |
| conn, addr = s.accept() | |
| with conn: | |
| print('Connected by', addr) |
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/env python3 | |
| import re, glob, subprocess, sys | |
| from datetime import datetime | |
| if len(sys.argv) != 2: | |
| print("Ussage: %s <search_pattern (glob)>" % sys.argv[0]) | |
| sys.exit() | |
| def loading(): |