mirror of
https://github.com/autistic-symposium/sec-pentesting-toolkit.git
synced 2025-05-02 06:46:07 -04:00
some memory exploitation snippets
This commit is contained in:
parent
d987311195
commit
ab05e249d4
19 changed files with 2613 additions and 0 deletions
10
Memory_Exploits/C-codes/crawl_passwd_file.c
Normal file
10
Memory_Exploits/C-codes/crawl_passwd_file.c
Normal file
|
@ -0,0 +1,10 @@
|
|||
#include <pwd.h>
|
||||
int main()
|
||||
{
|
||||
struct passwd *p;
|
||||
while(
|
||||
p=getpwent())
|
||||
printf("%s:%s:%d:%d:%s:%s:%s\n", p->pw_name,p->pw_passwd,
|
||||
p->pw_uid, p->pw_gid, p->pw_gecos, p->pw_dir, p->pw_shell);
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue