View wep_decrypt.py
This file contains 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 re | |
import sys | |
import subprocess | |
import os | |
import uuid | |
from binascii import hexlify | |
from concurrent.futures import ThreadPoolExecutor | |
# check the required parameters in the argv list | |
if len(sys.argv) < 4: |
View wordlist-gen.py
This file contains 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
from itertools import product | |
from string import digits | |
with open("wordlist.txt", "w") as file: | |
for secret in product(digits, repeat=4): | |
print(*secret, sep="", file=file) |
View docker-best-practices.txt
This file contains 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
# docker engine | |
docker unix socket should be runnining on with approperiate permissions, root user and docker group | |
allow only authorized users to have the | |
tcp and unix can run in both mode | |
unix socket is more secure if private docker setup | |
expose tcp socket with authentication and tls certs | |
implement firewall plugin and configure it properly | |
# in container | |
do not give excesive capabilities or privileged access |
View bandit.txt
This file contains 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
boJ9jbbUNNfktd78OOpsqOltutMc3MY1 | |
CV1DtqXWVFXTvM2F0k09SHz0YwRINYA9 | |
UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK | |
pIwrPrtPN36QITSp3EQaw936yaFoFgAB | |
koReBOKuIDDepwhWk7jZC0RTdopnAYKh | |
DXjZPULLxYr17uwoI01bNLQbtFemEgo7 | |
HKBPTKQnIay4Fw76bEy8PVxKEDQRKTzs | |
cvX2JJa4CFALtqS87jk27qwqGhBM9plV | |
UsvVyFSfZZWbi6wgC7dAFyFuR6jQQUhR | |
truKLdjsbJ5g7yyJ2X2R0o3a5HQJFuLk |
View brute.py
This file contains 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 python3 | |
import sys | |
from threading import Thread | |
from queue import Queue | |
from zipfile import ZipFile, BadZipFile | |
from tempfile import mkdtemp | |
from blessings import Terminal | |
TMPDIR = mkdtemp() |
View alias.diff
This file contains 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
--- /tmp/alias_completion-24679HnwBXq 2021-04-22 05:02:47.842921363 +0530 | |
+++ /home/terabyte/.bash_it/plugins/available/alias-completion.plugin.bash 2021-04-22 05:02:46.726252452 +0530 | |
@@ -1,2424 +1,106 @@ | |
-function _alias_completion::- { | |
- local compl_word=$2 | |
- local prec_word=$3 | |
- # check if prec_word is the alias itself. if so, replace it | |
- # with the last word in the unaliased form, i.e., | |
- # alias_cmd + ' ' + alias_args. | |
- if [[ $COMP_LINE == "$prec_word $compl_word" ]]; then |
View app.sh
This file contains 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 $1 | while read TOKEN; do | |
content=$(curl -s -H "Authorization: Token $TOKEN" $2) | |
if echo $content | grep -qi unauth; then continue | |
else echo $content; break; exit 0 | |
fi | |
done |
View app.sh
This file contains 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 $1 | while read USER; do | |
cat $2 | while read PASSWORD; do | |
if curl -s $3 -c /tmp/cookie --digest -u $USER:$PASSWORD | grep -qi "unauth" | |
then | |
continue | |
else | |
echo [+] Found $USER:$PASSWORD | |
exit 0 | |
fi | |
done |
View Laravel.conf
This file contains 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
server { | |
listen 80; | |
server_name example.com; | |
root /srv/example.com/public; | |
add_header X-Frame-Options "SAMEORIGIN"; | |
add_header X-XSS-Protection "1; mode=block"; | |
add_header X-Content-Type-Options "nosniff"; | |
index index.php; |
View hello.dart
This file contains 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
void main() { | |
for (int i = 0; i < 5; i++) { | |
print('hello world ${i + 1}'); | |
} | |
} |
NewerOlder