<reponame>LockOne/AFLplusplus-1
#!/usr/bin/python3
import sys

if len(sys.argv) != 3:
  print("usage : {} <binary file> <offset>\n".format(sys.argv[0]))
  exit(0)

logfile = open(sys.argv[1], "rb")
target_offset = int(sys.argv[2])

content = logfile.read()

if len(content) <= target_offset:
  print("Offset is too large")
else:
  print("[{}] : {}".format(target_offset, content[target_offset]))

#!/usr/bin/python3
import sys

if len(sys.argv) != 3:
  print("usage : {} <binary file> <offset>\n".format(sys.argv[0]))
  exit(0)

logfile = open(sys.argv[1], "rb")
target_offset = int(sys.argv[2])

content = logfile.read()

if len(content) <= target_offset:
  print("Offset is too large")
else:
  print("[{}] : {}".format(target_offset, content[target_offset]))
#!/usr/bin/python3