MCPcopy Create free account
hub / github.com/Yeuoly/0xUBypass / seeking

Function seeking

WindowsShellcodeInjector/main.cpp:24–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22ShellCode shellcode;
23
24int seeking(char *src, int size, char *magic, int msize) {
25 int result = -1;
26
27 for (int pos = 0; pos < size - msize; pos++) {
28 bool success = true;
29 for (int i = 0; i < msize; i++) {
30 if (src[pos + i] != magic[i]) {
31 success = false;
32 break;
33 }
34 }
35 if (success) {
36 return pos;
37 }
38 }
39 return result;
40}
41
42int en(int argc, char **argv) {
43 if (argc != 2) {

Callers 1

enFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected