Exploit databaseDownload repository ZIP
GH-5c1955e48dd59e7bc6e41f6788987982
0xdecae/turut
Sources for CVE-2016-5195
80 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files7
0xdecae/turutRevision a3c8d5bbc4c3
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
action/bin2hex2.py
Python · 447 bytes#!/usr/bin/env python3
import sys
try:
program = sys.argv[1]
except IndexError:
print("usage: %s <file>")
exit()
count = 0
print("unsigned char sc[] = {")
sys.stdout.write(" ")
with open(program, "rb") as fp:
while True:
count += 1
x = fp.read(1)
if not x:
break
sys.stdout.write(" 0x%s," % x.hex())
if count % 15 == 0:
sys.stdout.write("\n ")
print("\b\b\n};")