Last active
September 24, 2019 23:25
-
-
Save mandatoryprogrammer/1b39f1b57c70e65456ab75c132ef56cd to your computer and use it in GitHub Desktop.
This file contains 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
import uuid | |
def main( block_input, backpack ): | |
dump_location = "/tmp/" + str( uuid.uuid4() ) | |
is_vulnerable_to_heartbleed = check( | |
block_input[ "ip" ], | |
int( block_input[ "port" ] ), | |
dump_location, | |
False, | |
False | |
) | |
os.remove( dump_location ) | |
return { | |
"ip": block_input[ "ip" ], | |
"port": block_input[ "port" ], | |
"vulnerable": is_vulnerable_to_heartbleed | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment