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
# Bluetooth Hacking Cheatsheet | |
## Bluetoothctl | |
### Basic Commands | |
- **Start bluetoothctl**: | |
`bluetoothctl` | |
- **Turn on the Bluetooth adapter**: |
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
" VIM Configuration File | |
" Description: Optimized for C/C++ development, but useful also for other things. | |
" Author: Gerhard Gappmeier | |
" | |
" set UTF-8 encoding | |
set enc=utf-8 | |
set fenc=utf-8 | |
set termencoding=utf-8 | |
" disable vi compatibility (emulation of old bugs) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
body { | |
font-family: Arial, sans-serif; | |
background-color: #f2f2f2; | |
display: flex; | |
justify-content: center; |
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 | |
def crc8(data: int) -> int: | |
crc = 0xFF | |
polynom = 0x31 | |
data_bytes = data.to_bytes(2, 'big') | |
for byte in data_bytes: |
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
seq 3189 3193 > x.txt ; seq 5003 5008 > y.txt; while read -r x && read -r y <&3; do echo number wat${x}.hostgator.com wat${y}.hostgator.com ;done <x.txt 3<y.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
/usr/sbin/conntrack -L |grep $1 | grep ESTAB |grep 'dport=$2' | awk '{ system("/usr/sbin/conntrack -D --orig-src '$1' --orig-dst " substr($6,5) " -p tcp --orig-port-src " substr($7,7) " --orig-port-dst $2");}'; |
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
iptables -t mangle -N badz | |
iptables -t mangle -N blockz | |
iptables -t mangle -A PREROUTING -p tcp -m tcp --dport 80 -j blockz | |
iptables -t mangle -A badz -m recent --set --name terrible --rsource | |
iptables -t mangle -A blockz -p tcp -m tcp --dport 80 --tcp-flags FIN,SYN,RST,ACK SYN -m recent --update --seconds 3600 --name terrible --rsource -j DROP | |
iptables -t mangle -A blockz -p tcp -m tcp --dport 80 -m string --string "malicious_string" --algo bm --to 65535 -m recent --set --name bad --rsource | |
iptables -t mangle -A blockz -p tcp -m tcp --dport 80 -m string --string "malicious_string" --algo bm --to 65535 -m recent --update --seconds 10 --hitcount 3 --name bad --rsource -j badz |
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
#!/bin/bash | |
# Set the variable for bash behavior | |
shopt -s nullglob | |
shopt -s dotglob | |
# Die if dir name provided on command line | |
[[ $# -eq 0 ]] && { echo "Usage: $0 dir-name"; exit 1; } | |
# Check for empty files using arrays | |
chk_files=(${1}/*) |
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
# cpapi2 --user=tqqlzfna AddonDomain addaddondomain dir=/home/tqqlzfna/public_html/whatever.com newdomain=watever.com subdomain=wat | |
# /scripts/addpop test@watever.com apassword... | |
# mail -s "Test Subject" test@watever.com < /dev/null |
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/perl | |
use strict; | |
use warnings; | |
unless (scalar @ARGV == 1) { | |
die "Parameter needed, please pass ctid as parameter"; | |
} | |
my $ctid = $ARGV[0]; |
NewerOlder