diff --git a/index.md b/index.md index 6dab791..2510e2f 100644 --- a/index.md +++ b/index.md @@ -32,6 +32,7 @@ Curators: * [@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) diff --git a/linux/cmd_template.md b/linux/cmd_template.md new file mode 100644 index 0000000..bc945cd --- /dev/null +++ b/linux/cmd_template.md @@ -0,0 +1,13 @@ +---- + +## command +### Argument example + * **Command with arguments**: `command --help` + * **Description**: Displays files recursively~ + * **Output**: + *
**OS:** Show/Hide
command --help + ... + ... + ... +
+ diff --git a/linux/find_files.md b/linux/find_files.md new file mode 100644 index 0000000..c7f152b --- /dev/null +++ b/linux/find_files.md @@ -0,0 +1,79 @@ + + + +# Linux finding files commands + +Commands that finds files on the file system are usually executed from within a shell (sh/bash) or through a forking function such as system() or exec(). + +## ls +### Attributes showing + * **Command with arguments**: `ls -l [directory or filename]` + * **Description**: Displays attributes of files and directories in the specified location + * **Output**: + *
**Ubuntu:** Show/Hide
root@localhost:~/ ls -l / + total 429820 + drwxr-xr-x 2 root root 4096 2013-08-23 02:49 bin + drwxr-xr-x 3 root root 4096 2013-08-23 03:18 boot + drwxr-xr-x 2 root root 4096 2011-03-05 11:41 cdrom + drwxr-xr-x 15 root root 4600 2013-11-25 15:43 dev + drwxr-xr-x 158 root root 12288 2013-12-04 15:54 etc + drwxr-xr-x 4 root root 4096 2013-05-02 07:19 home + lrwxrwxrwx 1 root root 21 2012-03-01 08:11 initrd.img -> boot/initrd.img-3.2.6 + drwxr-xr-x 25 root root 16384 2013-08-23 02:50 lib + drwx------ 2 root root 16384 2011-03-05 11:40 lost+found + drwxr-xr-x 4 root root 4096 2013-08-04 22:31 media + drwxr-xr-x 3 root root 4096 2012-03-04 19:14 mnt + -rw-r--r-- 1 root root 1045 2012-08-13 23:52 nis + drwxr-xr-x 12 root root 4096 2013-08-23 03:02 opt + drwxr-xr-x 25 root root 4096 2013-08-23 02:54 pentest + dr-xr-xr-x 148 root root 0 2013-11-25 15:36 proc + drwx------ 77 root root 4096 2013-12-04 15:58 root + -rw-r--r-- 1 root root 440006761 2012-10-01 00:09 root.tgz + drwxr-xr-x 2 root root 12288 2013-08-23 02:51 sbin + drwxr-xr-x 2 root root 4096 2009-12-05 16:55 selinux + drwxr-xr-x 4 root root 4096 2011-05-10 03:42 share + drwxr-xr-x 4 root root 4096 2013-04-17 21:25 srv + drwxr-xr-x 12 root root 0 2013-11-25 15:36 sys + drwxrwxrwt 12 root root 4096 2013-12-04 01:00 tmp + drwxr-xr-x 13 root root 4096 2013-08-23 02:52 usr + drwxr-xr-x 16 root root 4096 2011-06-08 09:16 var + lrwxrwxrwx 1 root root 18 2012-03-01 08:11 vmlinuz -> boot/vmlinuz-3.2.6 +
+ +---- + +## find +### Search by name + * **Command with arguments**: `find /etc -name "issue*"` + * **Description**: Locates files matching the name (wildcards supported) + * **Output**: + *
**Ubuntu:** Show/Hide
root@localhost:~/ find /etc -name "issue*" + /etc/issue.net + /etc/issue + /etc/issue.dpkg-dist +
+ +---- + +## locate + * **Command with arguments**: `locate ifconfig` + * **Description**: Look files up in the location database + * **Output**: + *
**Ubuntu:** Show/Hide
root@localhost:~/ locate ifconfig + /pentest/forensics/volatility/volatility/plugins/linux/ifconfig.py + /pentest/forensics/volatility/volatility/plugins/linux/ifconfig.pyc + /sbin/ifconfig + /usr/share/man/de/man8/ifconfig.8.gz + /usr/share/man/fr/man8/ifconfig.8.gz + /usr/share/man/man8/ifconfig.8.gz + /usr/share/man/pt_BR/man8/ifconfig.8.gz +
+ diff --git a/navigation.md b/navigation.md index bc63316..f023344 100644 --- a/navigation.md +++ b/navigation.md @@ -23,6 +23,7 @@ * [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)