Skip to content

Instantly share code, notes, and snippets.

@kongwenbin
Created December 30, 2017 15:17
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 kongwenbin/8551e2665f6be6e7083a182efbb7f10e to your computer and use it in GitHub Desktop.
Save kongwenbin/8551e2665f6be6e7083a182efbb7f10e to your computer and use it in GitHub Desktop.
A simple function to decode base64 encoded content designed for VulnHub VM - FristiLeaks v1.3
#Wrote this simple function to solve the CTF designed for FristiLeaks v1.3 VulnHub VM
#!/usr/bin/python
import base64,codecs,sys
def decodeString(str):
decode = codecs.decode(str[::-1], 'rot13')
return base64.b64decode(decode)
cryptoResult=decodeString(sys.argv[1])
print cryptoResult
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment