This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Explication => https://stackoverflow.com/a/70193244/12778808 | |
| import argparse | |
| import ctypes | |
| parent_parser = argparse.ArgumentParser(description="Redacted") | |
| subparsers = parent_parser.add_subparsers() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| from os.path import isfile | |
| if len(sys.argv)<=1: | |
| print("Please specify your source file.") | |
| exit() | |
| elif not isfile(sys.argv[1]): | |
| print("{} not found.".format(sys.argv[1])) | |
| exit() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| payload = 'eval(open("/tmp/flag.txt", "r").read())' | |
| final = "" | |
| for i in payload: | |
| final+="chr({})+".format(ord(i)) | |
| final = final[:-1] | |
| print("Here is your payload king :\n-> eval({})".format(final)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| if ($host = yourwebsite.com) { | |
| return 301 https://$host$request_uri; | |
| } # managed by Certbot | |
| listen 80; | |
| server_name yourwebsite.com; | |
| # Redirect all HTTP requests to HTTPS with a 301 Moved Permanently response. | |
| location / { |