Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*ngetest shellcode latihan3*/
- const char code[] =
- "\xb8\x04\x00\x00\x00"\
- "\xbb\x01\x00\x00\x00"\
- "\xb9\xe4\x90\x04\x08"\
- "\xba\x1a\x00\x00\x00"\
- "\xcd\x80"\
- "\xb8\x03\x00\x00\x00"\
- "\xbb\x02\x00\x00\x00"\
- "\xb9\x14\x91\x04\x08"\
- "\xba\x05\x00\x00\x00"\
- "\xcd\x80"\
- "\xb8\x04\x00\x00\x00"\
- "\xbb\x01\x00\x00\x00"\
- "\xb9\xfe\x90\x04\x08"\
- "\xba\x16\x00\x00\x00"\
- "\xb8\x04\x00\x00\x00"\
- "\xbb\x01\x00\x00\x00"\
- "\xb9\x14\x91\x04\x08"\
- "\xba\x05\x00\x00\x00"\
- "\xcd\x80"\
- "\xb8\x01\x00\x00\x00"\
- "\xbb\x00\x00\x00\x00"\
- "\xcd\x80";
- int main(int argc, char **argv)
- {
- int (*func)();
- func = (int (*)()) code;
- (int)(*func)();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement