Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.