mirror of
https://github.com/oXis/pwnwiki.github.io.git
synced 2025-10-29 16:56:59 +00:00
Merge pull request #52 from pwnwiki/nav-reorg
Navigation reorganization based on discussion
This commit is contained in:
commit
4ebc6b7a65
0
cats/ncat.md → 2besorted/cats/ncat.md
Executable file → Normal file
0
cats/ncat.md → 2besorted/cats/ncat.md
Executable file → Normal file
0
cats/netcat.md → 2besorted/cats/netcat.md
Executable file → Normal file
0
cats/netcat.md → 2besorted/cats/netcat.md
Executable file → Normal file
0
cats/socat.md → 2besorted/cats/socat.md
Executable file → Normal file
0
cats/socat.md → 2besorted/cats/socat.md
Executable file → Normal file
@ -1,68 +1,68 @@
|
||||
|
||||
# OS X Google Doc Content #
|
||||
|
||||
The content below is the raw data from the Google Doc that was first used to collect it. Over time, this content will be moved into sub-pages and organized but is placed here, now, so as to be more complete. We apologize for its appearance.
|
||||
|
||||
----
|
||||
|
||||
## Blind Files
|
||||
(things to pull when all you can do is blindly read) LFI/dir traversal
|
||||
/etc/resolv.conf (everyone always has read on this and it wont trigger an IDS)
|
||||
|
||||
## System
|
||||
<code>uname -a
|
||||
ps aux
|
||||
ps -aef
|
||||
id
|
||||
arch
|
||||
w
|
||||
who -a
|
||||
gcc -v
|
||||
mysql --version
|
||||
perl -v
|
||||
ruby -v
|
||||
python --version
|
||||
df -k
|
||||
mount
|
||||
last -a
|
||||
lastlogin (*bsd)
|
||||
getenforce <- does not work on Lion no idea if this work in previous versions
|
||||
dmesg
|
||||
lsusb<- does not work on Lion no idea it this work on previous versions
|
||||
lshw <- does not work on Lion no idea it this work on previous versions
|
||||
free -m <- does not work on Lion no idea it this work on previous versions
|
||||
du -h --max-depth=1 /
|
||||
which nmap (see if it's already installed)
|
||||
locate bin/nmap
|
||||
which nc (see if it's already installed)
|
||||
locate bin/<whatever you want>
|
||||
whoami
|
||||
jps -l
|
||||
java -version</code>
|
||||
|
||||
## Networking
|
||||
<code>hostname -f
|
||||
ip addr show
|
||||
ifconfig -a
|
||||
route -n
|
||||
cat /etc/network/interfaces
|
||||
iptables -L -n
|
||||
netstat -anop
|
||||
netstat -r
|
||||
netstat -nltupw (root with raw sockets)
|
||||
arp -a
|
||||
lsof -nPi</code>
|
||||
|
||||
## Per User
|
||||
<code>ls -alh /Users/*/
|
||||
ls -alh /Users/*/.ssh/
|
||||
cat /Users/*/.ssh/authorized_keys
|
||||
cat /Users/*/.ssh/known_hosts
|
||||
cat /Users/*/.*hist*
|
||||
find -type f /Users/*/.vnc /Users/*/.subversion
|
||||
grep ^ssh /Users/*/.*hist*
|
||||
grep ^telnet `/Users/*/.*hist*
|
||||
grep ^mysql /Users/*/.*hist*
|
||||
cat /Users/*/.viminfo
|
||||
sudo -l # if sudoers is not readable, this sometimes works per user
|
||||
crontab -l</code>
|
||||
|
||||
# OS X Google Doc Content #
|
||||
|
||||
The content below is the raw data from the Google Doc that was first used to collect it. Over time, this content will be moved into sub-pages and organized but is placed here, now, so as to be more complete. We apologize for its appearance.
|
||||
|
||||
----
|
||||
|
||||
## Blind Files
|
||||
(things to pull when all you can do is blindly read) LFI/dir traversal
|
||||
/etc/resolv.conf (everyone always has read on this and it wont trigger an IDS)
|
||||
|
||||
## System
|
||||
<code>uname -a
|
||||
ps aux
|
||||
ps -aef
|
||||
id
|
||||
arch
|
||||
w
|
||||
who -a
|
||||
gcc -v
|
||||
mysql --version
|
||||
perl -v
|
||||
ruby -v
|
||||
python --version
|
||||
df -k
|
||||
mount
|
||||
last -a
|
||||
lastlogin (*bsd)
|
||||
getenforce <- does not work on Lion no idea if this work in previous versions
|
||||
dmesg
|
||||
lsusb<- does not work on Lion no idea it this work on previous versions
|
||||
lshw <- does not work on Lion no idea it this work on previous versions
|
||||
free -m <- does not work on Lion no idea it this work on previous versions
|
||||
du -h --max-depth=1 /
|
||||
which nmap (see if it's already installed)
|
||||
locate bin/nmap
|
||||
which nc (see if it's already installed)
|
||||
locate bin/<whatever you want>
|
||||
whoami
|
||||
jps -l
|
||||
java -version</code>
|
||||
|
||||
## Networking
|
||||
<code>hostname -f
|
||||
ip addr show
|
||||
ifconfig -a
|
||||
route -n
|
||||
cat /etc/network/interfaces
|
||||
iptables -L -n
|
||||
netstat -anop
|
||||
netstat -r
|
||||
netstat -nltupw (root with raw sockets)
|
||||
arp -a
|
||||
lsof -nPi</code>
|
||||
|
||||
## Per User
|
||||
<code>ls -alh /Users/*/
|
||||
ls -alh /Users/*/.ssh/
|
||||
cat /Users/*/.ssh/authorized_keys
|
||||
cat /Users/*/.ssh/known_hosts
|
||||
cat /Users/*/.*hist*
|
||||
find -type f /Users/*/.vnc /Users/*/.subversion
|
||||
grep ^ssh /Users/*/.*hist*
|
||||
grep ^telnet `/Users/*/.*hist*
|
||||
grep ^mysql /Users/*/.*hist*
|
||||
cat /Users/*/.viminfo
|
||||
sudo -l # if sudoers is not readable, this sometimes works per user
|
||||
crontab -l</code>
|
||||
38
README.md
38
README.md
@ -1,15 +1,8 @@
|
||||
Post Exploitation Wiki
|
||||
======================
|
||||
|
||||
This wiki is powered by MDwiki which is a self contained wiki in a single HTML file.
|
||||
|
||||
All you have to do to use the wiki is clone the repo to anywhere you can open HTML, served or local.
|
||||
|
||||
Contributors please see here: https://github.com/pwnwiki/pwnwiki.github.io/wiki/Wiki-contributor
|
||||
## PwnWiki.io is a collection TTPs (tools, tactics, and procedures) for what to do after access has been gained.
|
||||
|
||||
### Live Online Copy:
|
||||
|
||||
You can find a copy of the project online at: http://pwnwiki.io/. If you are reading this from the live website and want to get to the Github repository click here -> https://github.com/pwnwiki/pwnwiki.github.io.
|
||||
You can find a copy of the project online at: http://PwnWiki.io
|
||||
|
||||
### Offline Use:
|
||||
|
||||
@ -17,19 +10,24 @@ You can find a copy of the project online at: http://pwnwiki.io/. If you are rea
|
||||
2. Open index.html
|
||||
3. Most modern browsers don't allow the access of local files from a locally loaded HTML file. On Windows you can use [Mongoose Tiny](http://cesanta.com/downloads.html) or [HFS](http://www.rejetto.com/hfs/) to host the files locally. On OSX and Linux `python -m SimpleHTTPServer` seems to work just fine.
|
||||
|
||||
### Reference Binaries:
|
||||
#### Referenced tools can be found here: https://github.com/mubix/post-exploitation (If they aren't built into the OS)
|
||||
|
||||
If the binary referenced isn't built into the respective OS, can be found here:
|
||||
https://github.com/mubix/post-exploitation
|
||||
- - - - - -
|
||||
#### Submitting Content
|
||||
We want/need your help! Please contribute to this project is via GitHub (https://github.com/pwnwiki/pwnwiki.github.io). That allows us to get your project-ready content incorporated into the wiki fast.
|
||||
|
||||
#### Known issue with Chrome:
|
||||
We realize that not everyone can/wants to submit content via GitHub and that's cool. If your go-to content is not up here and you don't want to spend the time becoming a Git Jedi, just visit our [Google Form](https://docs.google.com/forms/d/1N7-jRjnUXoz-UwB2h0du2IrskFJW6hBGs4YsTwvEncE/viewform). Due to the large amount of submissions and content, there may be a delay between your posting and us getting your content into the project. Thanks for your submissions and your patience!
|
||||
|
||||
Chrome doesn't allow local file access from local files loaded in the
|
||||
browser (ala index.html loading index.md). There are two ways around this. Use a web server to host
|
||||
it (Apache, nginx, python SimpleHTTPServer, etc) or start Chrome with the `--allow-file-access-from-files`
|
||||
argument. See here for more details: http://dynalon.github.io/mdwiki/#!faq.md
|
||||
- - - - - -
|
||||
Curators:
|
||||
|
||||
* [@mubix](https://twitter.com/mubix) [gimmick:TwitterFollow](@mubix)
|
||||
* [@WebBreacher](https://twitter.com/webbreacher) [gimmick:TwitterFollow](@WebBreacher)
|
||||
* [@tekwizz123](https://twitter.com/tekwizz123) [gimmick:TwitterFollow](@tekwizz123)
|
||||
* [@jakx_](https://twitter.com/jakx_) [gimmick:TwitterFollow](@jakx_)
|
||||
* [@TheColonial](https://twitter.com/TheColonial) [gimmick:TwitterFollow](@TheColonial)
|
||||
* [@Wireghoul](https://twitter.com/Wireghoul) [gimmick:TwitterFollow](@Wireghoul)
|
||||
|
||||
If you would like to become a curator, please contact [mubix@hak5.org](mailto:mubix@hak5.org)
|
||||
|
||||
### More info about MDwiki:
|
||||
|
||||
http://dynalon.github.io/mdwiki/#!index.md
|
||||
[gimmick:ForkMeOnGitHub ({ color: 'red', position: 'right' })](http://www.github.com/pwnwiki/pwnwiki.github.io/)
|
||||
|
||||
@ -1,3 +0,0 @@
|
||||
# Place Holder
|
||||
|
||||
Content coming. Feel free to submit ;-)
|
||||
@ -1,3 +0,0 @@
|
||||
# Place Holder
|
||||
|
||||
Content coming. Feel free to submit ;-)
|
||||
@ -2,68 +2,59 @@
|
||||
|
||||
[Home](index.md)
|
||||
|
||||
[Windows]()
|
||||
[Presence]()
|
||||
|
||||
* [Autostart Locations](windows/autostart.md)
|
||||
* [Binary Planting](windows/binary.md)
|
||||
* [CMD Commands](windows/cmd.md)
|
||||
* [Covering Tracks](windows/cover.md)
|
||||
* [Files - Blind](windows/blind.md)
|
||||
* [Files - Finding](windows/find_files.md)
|
||||
* [Files - Important](windows/files.md)
|
||||
* [Persistance](windows/persistance.md)
|
||||
* [Powershell](windows/powershell.md)
|
||||
* [Privilege Escalation](windows/privesc.md)
|
||||
* [Remote Access](windows/remote.md)
|
||||
* [UAC Bypassing](windows/uac.md)
|
||||
* [MSSQL Servers](windows/mssql.md)
|
||||
* [Windows](presence/windows/index.md)
|
||||
* [Linux](presence/linux/index.md)
|
||||
* [OSX](presence/osx/index.md)
|
||||
|
||||
|
||||
[Linux]()
|
||||
[Persistence]()
|
||||
|
||||
* [Google Doc Content](linux/bulk.md)
|
||||
* [Files - Blind](linux/blind.md)
|
||||
* [Files - Finding](linux/find_files.md)
|
||||
* [SH/BASH Commands](linux/bash.md)
|
||||
* [Persistance](linux/persistance.md)
|
||||
* [Privilege Escalation](linux/privesc.md)
|
||||
* [Windows](persistence/windows/index.md)
|
||||
* [Linux](persistence/linux/index.md)
|
||||
* [OSX](persistence/osx/index.md)
|
||||
|
||||
[Pivoting]()
|
||||
|
||||
[OSX]()
|
||||
* [Windows](pivoting/windows/index.md)
|
||||
* [Linux](pivoting/linux/index.md)
|
||||
* [OSX](pivoting/osx/index.md)
|
||||
|
||||
* [Bash Commands](osx/bash.md)
|
||||
* [Files - Blind](osx/blind.md)
|
||||
* [Files - Finding](osx/find_files.md)
|
||||
* [Persistance](osx/persistance.md)
|
||||
* [Privilege Escalation](osx/privesc.md)
|
||||
[Privilege Escalation]()
|
||||
|
||||
[Mobile]()
|
||||
* [Windows](privesc/windows/index.md)
|
||||
* [Linux](privesc/linux/index.md)
|
||||
* [OSX](privesc/osx/index.md)
|
||||
|
||||
* [Android](mobile/android.md)
|
||||
* [iOS](mobile/ios.md)
|
||||
[Technologies]()
|
||||
|
||||
[Other OSs]()
|
||||
* [Mobile](tech/mobile/index.md)
|
||||
* [Mainframes](tech/mainframes/index.md)
|
||||
* [Embedded OSs](tech/embedded/index.md)
|
||||
* [Web Languages](tech/web/languages.md)
|
||||
* [Web Apps](tech/web/apps.md)
|
||||
* [Web Servers](tech/web/servers.md)
|
||||
* [Network Services](tech/services/index.md)
|
||||
* [Databases](tech/db/index.md)
|
||||
* [Novell](tech/novell.md)
|
||||
|
||||
* [zOS](otheros/zos.md)
|
||||
* [AS/400](otheros/as400.md)
|
||||
* [Cisco](otheros/cisco.md)
|
||||
* [Juniper](otheros/juniper.md)
|
||||
[Binaries]()
|
||||
|
||||
* [Windows](bins/windows/index.md)
|
||||
* [Linux](bins/linux/index.md)
|
||||
* [OSX](bins/osx/index.md)
|
||||
* [Universal](bins/multi/index.md)
|
||||
|
||||
[Scripting]()
|
||||
|
||||
* [Python](scripting/python.md)
|
||||
* [Powershell](scripting/powershell.md)
|
||||
* [Ruby](scripting/ruby.md)
|
||||
* [Perl](scripting/perl.md)
|
||||
* [Windows](scripting/windows.md)
|
||||
* [NodeJS](scripting/NodeJS.md)
|
||||
* [Linux bash](scripting/bash.md)
|
||||
|
||||
[Cats]()
|
||||
|
||||
* [ncat](cats/ncat.md)
|
||||
* [netcat](cats/netcat.md)
|
||||
* [socat](cats/socat.md)
|
||||
|
||||
[Metasploit]()
|
||||
|
||||
* [Meterpreter](msf/meterpreter.md)
|
||||
@ -75,10 +66,9 @@
|
||||
|
||||
[References]()
|
||||
|
||||
* [How to Contribute](references/contribute.md)
|
||||
* [Links](references/links.md)
|
||||
* [Unix Rosetta Stone](references/rosetta.htm)
|
||||
|
||||
|
||||
[Links](links.md)
|
||||
|
||||
[gimmick:themechooser](Wiki Theme)
|
||||
|
||||
@ -92,3 +82,4 @@ return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@ -1,3 +0,0 @@
|
||||
# Place Holder
|
||||
|
||||
Content coming. Feel free to submit ;-)
|
||||
@ -1,3 +0,0 @@
|
||||
# Place Holder
|
||||
|
||||
Content coming. Feel free to submit ;-)
|
||||
@ -1,3 +0,0 @@
|
||||
# Place Holder
|
||||
|
||||
Content coming. Feel free to submit ;-)
|
||||
0
presence/linux/index.md
Normal file
0
presence/linux/index.md
Normal file
30
osx/find_files.md → presence/osx/find_files.md
Executable file → Normal file
30
osx/find_files.md → presence/osx/find_files.md
Executable file → Normal file
@ -1,15 +1,15 @@
|
||||
# OS X Finding File Commands
|
||||
|
||||
Commands that find files on the filesystem and are usually executed from the context of the shell (`/bin/bash` or `/bin/sh`) prompt.
|
||||
|
||||
| Command | Description / Importance |
|
||||
| -------- | ------------------------ |
|
||||
| `find /sbin /usr/sbin /opt /lib` ``echo $PATH` |`'sed s/:/ /g'``` -perm -4000` | Find SUID files. |
|
||||
| `for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done` | Lists all the user crontab or scheduled tasks files. |
|
||||
| `find /var/log -type f -exec ls -la {} \;` | Find all the log files in `/var/log/` |
|
||||
| `ls -alhtr /Volumes` | Display the volumes mounted at `/Volumes` |
|
||||
| `ls /Users/*/.ssh/*` | Discover SSH files (keys and such) located in each user's home drive. May require root permissions to view these files in other user's directories. |
|
||||
| `locate tar` | `grep [.]tar$` | Finds all files that have a `.tar` extension. Substitute other archive extensions (e.g., `.zip`, `.7z`, `.rar`) or other extensions such as `.sql` or `.conf`. |
|
||||
| `locate settings` $#124; `grep [.]php$` | Find all files with the word settings in it and with a `.php` extension. |
|
||||
| `locate .properties` $#124; `grep [.]properties` | Finds Java configuration files. |
|
||||
|
||||
# OS X Finding File Commands
|
||||
|
||||
Commands that find files on the filesystem and are usually executed from the context of the shell (`/bin/bash` or `/bin/sh`) prompt.
|
||||
|
||||
| Command | Description / Importance |
|
||||
| -------- | ------------------------ |
|
||||
| `find /sbin /usr/sbin /opt /lib` ``echo $PATH` |`'sed s/:/ /g'``` -perm -4000` | Find SUID files. |
|
||||
| `for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done` | Lists all the user crontab or scheduled tasks files. |
|
||||
| `find /var/log -type f -exec ls -la {} \;` | Find all the log files in `/var/log/` |
|
||||
| `ls -alhtr /Volumes` | Display the volumes mounted at `/Volumes` |
|
||||
| `ls /Users/*/.ssh/*` | Discover SSH files (keys and such) located in each user's home drive. May require root permissions to view these files in other user's directories. |
|
||||
| `locate tar` | `grep [.]tar$` | Finds all files that have a `.tar` extension. Substitute other archive extensions (e.g., `.zip`, `.7z`, `.rar`) or other extensions such as `.sql` or `.conf`. |
|
||||
| `locate settings` $#124; `grep [.]php$` | Find all files with the word settings in it and with a `.php` extension. |
|
||||
| `locate .properties` $#124; `grep [.]properties` | Finds Java configuration files. |
|
||||
|
||||
15
tech/db/index.md
Normal file
15
tech/db/index.md
Normal file
@ -0,0 +1,15 @@
|
||||
# PwnWiki - Databases
|
||||
|
||||
[Home](../../index.html)
|
||||
|
||||
[MSSQL](mssql.md)
|
||||
|
||||
[MySQL](mysql.md)
|
||||
|
||||
[Postgresql](postgres.md)
|
||||
|
||||
[DB2](db2.md)
|
||||
|
||||
[NoSQL]()
|
||||
|
||||
* [Redis](redis.md)
|
||||
0
tech/novell.md
Normal file
0
tech/novell.md
Normal file
15
tech/services/index.md
Normal file
15
tech/services/index.md
Normal file
@ -0,0 +1,15 @@
|
||||
# Network Services
|
||||
|
||||
## SMB/CIFS/Samba
|
||||
|
||||
## rlogin
|
||||
|
||||
## telnet
|
||||
|
||||
## dns
|
||||
|
||||
## nfs
|
||||
|
||||
## x11
|
||||
|
||||
|
||||
0
tech/services/rlogin.md
Normal file
0
tech/services/rlogin.md
Normal file
4
tech/web/apps.md
Normal file
4
tech/web/apps.md
Normal file
@ -0,0 +1,4 @@
|
||||
# Web Applications
|
||||
|
||||
|
||||
##
|
||||
9
tech/web/languages.md
Normal file
9
tech/web/languages.md
Normal file
@ -0,0 +1,9 @@
|
||||
# Web Languages
|
||||
|
||||
## PHP
|
||||
|
||||
## ASP
|
||||
|
||||
## ASPX
|
||||
|
||||
## ColdFusion
|
||||
8
tech/web/servers.md
Normal file
8
tech/web/servers.md
Normal file
@ -0,0 +1,8 @@
|
||||
# Web Servers
|
||||
|
||||
## IIS
|
||||
|
||||
## Apache
|
||||
|
||||
## Lotus Domino
|
||||
|
||||
@ -1 +0,0 @@
|
||||
# DNS Configuration Issues
|
||||
@ -1 +0,0 @@
|
||||
# Insecure Protocols
|
||||
@ -1 +0,0 @@
|
||||
# Linx/UNIX Configuration Issues
|
||||
@ -1 +0,0 @@
|
||||
# SMTP Configuration Issues
|
||||
@ -1 +0,0 @@
|
||||
# SNMP Configuration Issues
|
||||
@ -1 +0,0 @@
|
||||
# SSL/TLS Certificate Issues
|
||||
@ -1 +0,0 @@
|
||||
# Windows Configuration Issues
|
||||
@ -1,3 +0,0 @@
|
||||
# Place Holder
|
||||
|
||||
Content coming. Feel free to submit ;-)
|
||||
@ -1,3 +0,0 @@
|
||||
# Place Holder
|
||||
|
||||
Content coming. Feel free to submit ;-)
|
||||
Loading…
x
Reference in New Issue
Block a user