Skip to content

Instantly share code, notes, and snippets.

@mandatoryprogrammer
Last active September 24, 2019 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mandatoryprogrammer/1b39f1b57c70e65456ab75c132ef56cd to your computer and use it in GitHub Desktop.
Save mandatoryprogrammer/1b39f1b57c70e65456ab75c132ef56cd to your computer and use it in GitHub Desktop.
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