This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NDSA20020719.txt.asc, CVE-2002-2331 | |
| NDSA20021112.txt.asc, CVE-2002-2399 | |
| NDSA20050719.txt.asc | |
| NDSA20060705.txt.asc, CVE-2006-3848 | |
| NDSA20070206.txt.asc, CVE-2007-0838 | |
| NDSA20070412.txt.asc | |
| NDSA20070524.txt.asc, CVE-2007-3190, CVE-2007-3191, CVE-2007-3189 | |
| NDSA20071016.txt.asc, CVE-2007-5691, CVE-2007-5492, CVE-2007-5493, CVE-2007-5694, CVE-2007-5695 | |
| NDSA20071119.txt.asc, CVE-2007-6100 | |
| NDSA20080215.txt.asc, CVE-2007-4074 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ ./get-attack-patterns.py treasury | |
| I: searching for treasury%20 | |
| 10 | |
| CVE-2017-3183 | |
| CVE-2019-0280 | |
| CVE-2019-0383 | |
| CVE-2019-0384 | |
| CVE-2020-6204 | |
| CVE-2019-20150 | |
| CVE-2019-20151 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| We start by unpacking the patch. On this occasion it's shipped as an RTE file (an AIX specific backup format), so we need to unpack it on our AIX VM like so: | |
| $ restore -T -f ../invscout.rte | |
| /lpp_name | |
| /usr | |
| /usr/lpp | |
| /usr/lpp/invscout.rte | |
| /usr/lpp/invscout.rte/liblpp.a | |
| /usr/lpp/invscout.rte/inst_root | |
| /usr/lpp/invscout.rte/inst_root/liblpp.a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| We start by unpacking the patch. On this occasion it's shipped as an RTE file (an AIX specific backup format), so we need to unpack it on our AIX VM like so: | |
| $ restore -T -f ../invscout.rte | |
| /lpp_name | |
| /usr | |
| /usr/lpp | |
| /usr/lpp/invscout.rte | |
| /usr/lpp/invscout.rte/liblpp.a | |
| /usr/lpp/invscout.rte/inst_root | |
| /usr/lpp/invscout.rte/inst_root/liblpp.a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| find / \( -perm -u+s -o -perm -g+s \) 2>/dev/null | while read line | |
| do | |
| echo +++ $line | |
| dump -X 32_64 -T $line 2>/dev/null | grep getenv | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ sudo chown root foo | |
| Password: | |
| $ sudo chmod u+rwxs foo | |
| $ ls -la foo | |
| -rwsr--r-- 1 root staff 0 13 Dec 15:19 foo | |
| $ sudo vi foo | |
| $ ls -la foo | |
| -rwsr--r-- 1 root staff 1711088 13 Dec 15:19 foo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Top 10 bugs: | |
| CVE-2014-7169,8 | |
| CVE-2016-6662,8 | |
| CVE-2012-0158,9 | |
| cve-2017-8759,10 | |
| CVE-2017-8625,11 | |
| CVE-2017-8759,13 | |
| cve-2021-32648,15 | |
| CVE-2015-3113,21 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ jq '.objects[] | select(.type | contains("attack-pattern")) | select(.x_mitre_platforms[] | contains("Linux")) | .name' enterprise-attack-11.0.json | sort | uniq > 11.out | |
| $ jq '.objects[] | select(.type | contains("attack-pattern")) | select(.x_mitre_platforms[] | contains("Linux")) | .name' enterprise-attack-12.0.json | sort | uniq > 12.out | |
| $ diff 11.out 12.out | |
| 33a34,36 | |
| > "Clear Mailbox Data" | |
| > "Clear Network Connection History and Configurations" | |
| > "Clear Persistence" | |
| 93a97 | |
| > "Embedded Payloads" | |
| 145c149 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gh repo list timb-machine-mirrors --fork -L 1230 --json name | tr "," "\n" | cut -f 4 -d "\"" | while read line | |
| do | |
| org=`gh repo view timb-machine-mirrors/$line --json parent | tr "," "\n" | grep login | cut -f 4 -d "\""` | |
| name=`gh repo view timb-machine-mirrors/$line --json parent | tr "," "\n" | grep name | cut -f 4 -d "\""` | |
| if [ "$line" != "$org-$name" ] | |
| then | |
| gh repo rename -y -R "timb-machine-mirrors/$line" "$org-$name" | |
| fi | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ps -aef | grep 94 | |
| root 94 2 0 Jun16 ? 00:00:00 [kworker/6:1H] | |
| root 594 2 0 Jun16 ? 00:00:00 [ipv6_addrconf] | |
| root 4692 2509 0 01:17 pts/0 00:00:00 grep 94 | |
| root 20394 2 0 Oct08 ? 00:00:20 [kworker/u32:2] | |
| # mkdir -p spoof/fd; mount -o bind spoof /proc/94; ln -s socket:\[283\] /proc/94/fd/99; ls -la /proc/94/fd | |
| total 4 | |
| drwxr-xr-x 2 root root 4096 Oct 9 01:16 . | |
| dr-xr-xr-x 193 root root 0 Jun 16 17:40 .. | |
| lrwxrwxrwx 1 root root 12 Oct 9 01:16 99 -> socket:[283] |