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 argparse | |
| import binaryninja | |
| import sys | |
| import tempfile | |
| import time | |
| import math | |
| import os | |
| from multiprocessing import Pool, TimeoutError, cpu_count |
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
| #Checks system calls for command injection patterns | |
| #@author | |
| #@category HackOvert | |
| #@keybinding | |
| #@menupath | |
| #@toolbar | |
| from ghidra.app.decompiler import DecompileOptions | |
| from ghidra.app.decompiler import DecompInterface | |
| from ghidra.program.model.pcode import Varnode |
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 binaryninja | |
| sources = [ | |
| 'snprintf', # int snprintf ( char * s, size_t n, const char * format, ... ); | |
| 'sprintf', # int sprintf ( char * s, const char * format, ... ); | |
| ] | |
| sinks = [ | |
| 'system', # int system(const char *command); | |
| ] |
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
| // Challenge from: | |
| // https://www.reddit.com/r/ExploitDev/comments/gv72xr/reverse_engineer_passphrase_check/ | |
| #include <stdio.h> | |
| #include <string.h> | |
| int check(char* input) { | |
| if (strlen(input) != 15) { | |
| return 0; | |
| } else { |
OlderNewer