13 lines
281 B
C
13 lines
281 B
C
// gcc ./checkin_pwn.c -o ./pwn
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
int main () {
|
|
long long key = 0xf61df61df61df61d;
|
|
long long input;
|
|
puts("Please input the key to login:");
|
|
read(0, (char *) &input, 8);
|
|
if(input == key) {
|
|
system("/bin/sh");
|
|
}
|
|
} |