icoa-cli 2.19.458 → 2.19.460
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/ai4ctf.js +1 -1
- package/dist/commands/ctf4ai-demo.js +1 -1
- package/dist/commands/ctf4vla.js +1 -1
- package/dist/commands/exam.js +1 -1
- package/dist/commands/learn.js +1 -1
- package/dist/commands/ref.js +1 -1
- package/dist/lib/lazy-assets.js +1 -0
- package/dist/lib/py-syntax.js +1 -1
- package/package.json +1 -2
- package/dist/commands/ai4ctf.d.ts +0 -4
- package/dist/commands/ai4ioai.d.ts +0 -29
- package/dist/commands/aienv.d.ts +0 -23
- package/dist/commands/arena-eai.d.ts +0 -37
- package/dist/commands/arena.d.ts +0 -8
- package/dist/commands/board.d.ts +0 -2
- package/dist/commands/challenge.d.ts +0 -9
- package/dist/commands/comms.d.ts +0 -2
- package/dist/commands/connect.d.ts +0 -15
- package/dist/commands/ctf.d.ts +0 -3
- package/dist/commands/ctf4ai-demo.d.ts +0 -4
- package/dist/commands/ctf4vla.d.ts +0 -34
- package/dist/commands/demo2.d.ts +0 -31
- package/dist/commands/demo4.d.ts +0 -3
- package/dist/commands/demo5.d.ts +0 -3
- package/dist/commands/doctor.d.ts +0 -2
- package/dist/commands/env.d.ts +0 -5
- package/dist/commands/exam.d.ts +0 -13
- package/dist/commands/files.d.ts +0 -2
- package/dist/commands/ioailab.d.ts +0 -1
- package/dist/commands/ipynb.d.ts +0 -20
- package/dist/commands/kaggle.d.ts +0 -12
- package/dist/commands/lang.d.ts +0 -2
- package/dist/commands/learn.d.ts +0 -16
- package/dist/commands/log.d.ts +0 -2
- package/dist/commands/note.d.ts +0 -25
- package/dist/commands/ref.d.ts +0 -2
- package/dist/commands/setup.d.ts +0 -2
- package/dist/commands/shell.d.ts +0 -35
- package/dist/commands/sim.d.ts +0 -32
- package/dist/commands/sprint.d.ts +0 -7
- package/dist/commands/teleload.d.ts +0 -8
- package/dist/commands/theme.d.ts +0 -13
- package/dist/commands/view.d.ts +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/lib/access.d.ts +0 -14
- package/dist/lib/aienv.d.ts +0 -118
- package/dist/lib/arena-edit-dynamics.d.ts +0 -55
- package/dist/lib/arena-submit.d.ts +0 -23
- package/dist/lib/banner.d.ts +0 -9
- package/dist/lib/bgtasks.d.ts +0 -21
- package/dist/lib/board-render.d.ts +0 -14
- package/dist/lib/budget.d.ts +0 -1
- package/dist/lib/card-engine.d.ts +0 -45
- package/dist/lib/challenge-dir.d.ts +0 -1
- package/dist/lib/colors.d.ts +0 -11
- package/dist/lib/commands.d.ts +0 -53
- package/dist/lib/comms.d.ts +0 -40
- package/dist/lib/config.d.ts +0 -8
- package/dist/lib/countdown.d.ts +0 -4
- package/dist/lib/country-lang.d.ts +0 -1
- package/dist/lib/ctfd-client.d.ts +0 -33
- package/dist/lib/deck-cooldown.d.ts +0 -7
- package/dist/lib/demo-exam.d.ts +0 -28
- package/dist/lib/demo-flags.d.ts +0 -8
- package/dist/lib/demo-stats.d.ts +0 -17
- package/dist/lib/docker-probe.d.ts +0 -45
- package/dist/lib/drafts.d.ts +0 -11
- package/dist/lib/editor-spawn.d.ts +0 -28
- package/dist/lib/exam-client.d.ts +0 -15
- package/dist/lib/exam-sandbox.d.ts +0 -15
- package/dist/lib/exam-setup.d.ts +0 -19
- package/dist/lib/exam-state.d.ts +0 -42
- package/dist/lib/gemini.d.ts +0 -16
- package/dist/lib/gpu.d.ts +0 -51
- package/dist/lib/http.d.ts +0 -35
- package/dist/lib/i18n.d.ts +0 -215
- package/dist/lib/input-dynamics.d.ts +0 -38
- package/dist/lib/integrity-snapshot.d.ts +0 -22
- package/dist/lib/interactive-spawn.d.ts +0 -25
- package/dist/lib/ipynb-input.d.ts +0 -25
- package/dist/lib/kaggle.d.ts +0 -115
- package/dist/lib/kernel-protocol.d.ts +0 -92
- package/dist/lib/kernel.d.ts +0 -81
- package/dist/lib/learn-ai.d.ts +0 -159
- package/dist/lib/learn-contest.d.ts +0 -141
- package/dist/lib/learn-curricula.d.ts +0 -274
- package/dist/lib/learn-i18n.d.ts +0 -8
- package/dist/lib/learn-input.d.ts +0 -40
- package/dist/lib/learn-outcome.d.ts +0 -1
- package/dist/lib/learn-render.d.ts +0 -107
- package/dist/lib/learn-replies.d.ts +0 -42
- package/dist/lib/learn-state.d.ts +0 -66
- package/dist/lib/log-sync.d.ts +0 -2
- package/dist/lib/logger.d.ts +0 -12
- package/dist/lib/main-rl.d.ts +0 -20
- package/dist/lib/md-term.d.ts +0 -17
- package/dist/lib/menu-nav.d.ts +0 -25
- package/dist/lib/notebook-doc.d.ts +0 -38
- package/dist/lib/open-file.d.ts +0 -35
- package/dist/lib/paper-upgrade.d.ts +0 -27
- package/dist/lib/platform.d.ts +0 -110
- package/dist/lib/py-syntax.d.ts +0 -36
- package/dist/lib/render-card.d.ts +0 -17
- package/dist/lib/repl-asker.d.ts +0 -7
- package/dist/lib/resume.d.ts +0 -7
- package/dist/lib/sample-runner.d.ts +0 -14
- package/dist/lib/sandbox.d.ts +0 -30
- package/dist/lib/secure-store.d.ts +0 -18
- package/dist/lib/shell-split.d.ts +0 -17
- package/dist/lib/sim-cooldown.d.ts +0 -14
- package/dist/lib/sprint-meta.d.ts +0 -72
- package/dist/lib/statusline.d.ts +0 -1
- package/dist/lib/terminal-cleanup.d.ts +0 -35
- package/dist/lib/theme.d.ts +0 -4
- package/dist/lib/token-format.d.ts +0 -41
- package/dist/lib/tool-man.d.ts +0 -11
- package/dist/lib/toolset-hash.d.ts +0 -15
- package/dist/lib/translation.d.ts +0 -1
- package/dist/lib/translations-fetcher.d.ts +0 -6
- package/dist/lib/ui.d.ts +0 -12
- package/dist/lib/update-check.d.ts +0 -1
- package/dist/lib/version.d.ts +0 -8
- package/dist/repl.d.ts +0 -4
- package/dist/types/index.d.ts +0 -221
- package/refs/ROPgadget.txt +0 -67
- package/refs/base64.txt +0 -63
- package/refs/bash.txt +0 -79
- package/refs/binwalk.txt +0 -43
- package/refs/bs4.txt +0 -61
- package/refs/checksec.txt +0 -57
- package/refs/curl.txt +0 -73
- package/refs/cyberchef.txt +0 -78
- package/refs/exiftool.txt +0 -50
- package/refs/ffuf.txt +0 -73
- package/refs/gcc.txt +0 -66
- package/refs/gdb.txt +0 -83
- package/refs/hashcat.txt +0 -64
- package/refs/hint.txt +0 -48
- package/refs/icoa.txt +0 -72
- package/refs/john.txt +0 -74
- package/refs/linux.txt +0 -58
- package/refs/nc.txt +0 -64
- package/refs/nmap.txt +0 -57
- package/refs/numpy.txt +0 -59
- package/refs/openssl.txt +0 -75
- package/refs/pillow.txt +0 -67
- package/refs/pwntools.txt +0 -79
- package/refs/pycrypto.txt +0 -77
- package/refs/python.txt +0 -103
- package/refs/r2.txt +0 -85
- package/refs/regex.txt +0 -73
- package/refs/requests.txt +0 -83
- package/refs/rules.txt +0 -28
- package/refs/scapy.txt +0 -80
- package/refs/sqlmap.txt +0 -69
- package/refs/steghide.txt +0 -71
- package/refs/struct.txt +0 -61
- package/refs/sympy.txt +0 -77
- package/refs/tshark.txt +0 -65
- package/refs/vim.txt +0 -74
- package/refs/volatility.txt +0 -41
- package/refs/z3.txt +0 -78
package/refs/bash.txt
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
Bash Scripting Quick Reference
|
|
2
|
-
==============================
|
|
3
|
-
|
|
4
|
-
VARIABLES
|
|
5
|
-
NAME="value" Set variable (no spaces around =)
|
|
6
|
-
echo $NAME Use variable
|
|
7
|
-
echo "${NAME}_suffix" Variable in string
|
|
8
|
-
readonly VAR="val" Constant
|
|
9
|
-
|
|
10
|
-
CONDITIONALS
|
|
11
|
-
if [ condition ]; then
|
|
12
|
-
commands
|
|
13
|
-
elif [ condition ]; then
|
|
14
|
-
commands
|
|
15
|
-
else
|
|
16
|
-
commands
|
|
17
|
-
fi
|
|
18
|
-
|
|
19
|
-
# String comparisons
|
|
20
|
-
[ "$a" = "$b" ] Equal
|
|
21
|
-
[ "$a" != "$b" ] Not equal
|
|
22
|
-
[ -z "$a" ] Empty string
|
|
23
|
-
[ -n "$a" ] Non-empty string
|
|
24
|
-
|
|
25
|
-
# Numeric comparisons
|
|
26
|
-
[ $a -eq $b ] Equal
|
|
27
|
-
[ $a -ne $b ] Not equal
|
|
28
|
-
[ $a -lt $b ] Less than
|
|
29
|
-
[ $a -gt $b ] Greater than
|
|
30
|
-
|
|
31
|
-
# File tests
|
|
32
|
-
[ -f file ] Regular file exists
|
|
33
|
-
[ -d dir ] Directory exists
|
|
34
|
-
[ -r file ] Readable
|
|
35
|
-
[ -x file ] Executable
|
|
36
|
-
|
|
37
|
-
LOOPS
|
|
38
|
-
for i in 1 2 3; do echo $i; done
|
|
39
|
-
for f in *.txt; do cat "$f"; done
|
|
40
|
-
for ((i=0; i<10; i++)); do echo $i; done
|
|
41
|
-
while read line; do echo "$line"; done < file
|
|
42
|
-
while true; do cmd; sleep 1; done
|
|
43
|
-
|
|
44
|
-
FUNCTIONS
|
|
45
|
-
myfunc() {
|
|
46
|
-
echo "Arg1: $1, Arg2: $2"
|
|
47
|
-
return 0
|
|
48
|
-
}
|
|
49
|
-
myfunc "hello" "world"
|
|
50
|
-
|
|
51
|
-
ARRAYS
|
|
52
|
-
arr=(one two three)
|
|
53
|
-
echo ${arr[0]} First element
|
|
54
|
-
echo ${arr[@]} All elements
|
|
55
|
-
echo ${#arr[@]} Length
|
|
56
|
-
|
|
57
|
-
STRING OPERATIONS
|
|
58
|
-
${#var} String length
|
|
59
|
-
${var:0:5} Substring (offset:length)
|
|
60
|
-
${var/old/new} Replace first match
|
|
61
|
-
${var//old/new} Replace all matches
|
|
62
|
-
${var%.ext} Remove suffix
|
|
63
|
-
${var#prefix} Remove prefix
|
|
64
|
-
|
|
65
|
-
SPECIAL VARIABLES
|
|
66
|
-
$0 Script name
|
|
67
|
-
$1, $2, ... Arguments
|
|
68
|
-
$# Number of arguments
|
|
69
|
-
$@ All arguments
|
|
70
|
-
$? Last exit code
|
|
71
|
-
$$ Current PID
|
|
72
|
-
$! Last background PID
|
|
73
|
-
|
|
74
|
-
USEFUL PATTERNS
|
|
75
|
-
cmd || echo "failed" Run on failure
|
|
76
|
-
cmd && echo "ok" Run on success
|
|
77
|
-
$(command) Command substitution
|
|
78
|
-
$((1 + 2)) Arithmetic
|
|
79
|
-
cmd & Background process
|
package/refs/binwalk.txt
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
Binwalk Quick Reference
|
|
2
|
-
=======================
|
|
3
|
-
|
|
4
|
-
BASIC USAGE
|
|
5
|
-
binwalk file Scan for embedded files
|
|
6
|
-
binwalk -e file Extract embedded files
|
|
7
|
-
binwalk -Me file Recursive extraction
|
|
8
|
-
binwalk -D ".*" file Extract all file types
|
|
9
|
-
binwalk -E file Entropy analysis
|
|
10
|
-
binwalk -A file Instruction scan
|
|
11
|
-
binwalk -W file1 file2 Compare files (hexdiff)
|
|
12
|
-
|
|
13
|
-
EXTRACTION OPTIONS
|
|
14
|
-
binwalk -e file Extract to ./_file.extracted/
|
|
15
|
-
binwalk -C /tmp/out -e file Extract to custom directory
|
|
16
|
-
binwalk --dd="png:png" file Extract specific type
|
|
17
|
-
|
|
18
|
-
ENTROPY
|
|
19
|
-
binwalk -E file Show entropy graph
|
|
20
|
-
binwalk -E -J file Save entropy plot as PNG
|
|
21
|
-
|
|
22
|
-
FILTERING
|
|
23
|
-
binwalk -y "jpeg" file Only show JPEG signatures
|
|
24
|
-
binwalk -x "jpeg" file Exclude JPEG signatures
|
|
25
|
-
binwalk -R "\x89PNG" file Raw byte search
|
|
26
|
-
|
|
27
|
-
COMMON CTF PATTERNS
|
|
28
|
-
# Firmware analysis
|
|
29
|
-
binwalk -Me firmware.bin
|
|
30
|
-
|
|
31
|
-
# Find hidden files in image
|
|
32
|
-
binwalk -e image.png
|
|
33
|
-
|
|
34
|
-
# Check for appended data
|
|
35
|
-
binwalk suspicious_file
|
|
36
|
-
|
|
37
|
-
# Extract filesystem from firmware
|
|
38
|
-
binwalk -e -C ./extracted firmware.bin
|
|
39
|
-
|
|
40
|
-
RELATED TOOLS
|
|
41
|
-
foremost file Carve files by header/footer
|
|
42
|
-
foremost -t all -i file Carve all known types
|
|
43
|
-
foremost -o output/ -i file Output directory
|
package/refs/bs4.txt
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
BeautifulSoup Quick Reference
|
|
2
|
-
=============================
|
|
3
|
-
|
|
4
|
-
INSTALLATION
|
|
5
|
-
pip install beautifulsoup4
|
|
6
|
-
|
|
7
|
-
BASIC USAGE
|
|
8
|
-
from bs4 import BeautifulSoup
|
|
9
|
-
|
|
10
|
-
soup = BeautifulSoup(html, "html.parser")
|
|
11
|
-
soup = BeautifulSoup(html, "lxml")
|
|
12
|
-
|
|
13
|
-
FINDING ELEMENTS
|
|
14
|
-
soup.find("tag") First matching tag
|
|
15
|
-
soup.find_all("tag") All matching tags
|
|
16
|
-
soup.find("div", class_="x") By class
|
|
17
|
-
soup.find("div", id="main") By id
|
|
18
|
-
soup.find("a", href=True) Has attribute
|
|
19
|
-
soup.select("div.class") CSS selector
|
|
20
|
-
soup.select("#id") By ID selector
|
|
21
|
-
soup.select("div > p") Direct children
|
|
22
|
-
|
|
23
|
-
ELEMENT PROPERTIES
|
|
24
|
-
tag.text Text content
|
|
25
|
-
tag.string Direct string content
|
|
26
|
-
tag.get_text(strip=True) Stripped text
|
|
27
|
-
tag["href"] Attribute value
|
|
28
|
-
tag.get("href", "") Attribute with default
|
|
29
|
-
tag.attrs All attributes (dict)
|
|
30
|
-
tag.name Tag name
|
|
31
|
-
|
|
32
|
-
NAVIGATION
|
|
33
|
-
tag.parent Parent element
|
|
34
|
-
tag.children Direct children
|
|
35
|
-
tag.descendants All descendants
|
|
36
|
-
tag.next_sibling Next sibling
|
|
37
|
-
tag.previous_sibling Previous sibling
|
|
38
|
-
|
|
39
|
-
COMMON CTF PATTERNS
|
|
40
|
-
# Extract all links
|
|
41
|
-
for a in soup.find_all("a"):
|
|
42
|
-
print(a.get("href"))
|
|
43
|
-
|
|
44
|
-
# Extract form fields
|
|
45
|
-
form = soup.find("form")
|
|
46
|
-
for inp in form.find_all("input"):
|
|
47
|
-
print(inp.get("name"), inp.get("value"))
|
|
48
|
-
|
|
49
|
-
# Extract hidden fields
|
|
50
|
-
hidden = soup.find_all("input", type="hidden")
|
|
51
|
-
for h in hidden:
|
|
52
|
-
print(h["name"], h["value"])
|
|
53
|
-
|
|
54
|
-
# Extract table data
|
|
55
|
-
for row in soup.find_all("tr"):
|
|
56
|
-
cells = [td.text for td in row.find_all("td")]
|
|
57
|
-
print(cells)
|
|
58
|
-
|
|
59
|
-
# Find comments
|
|
60
|
-
from bs4 import Comment
|
|
61
|
-
comments = soup.find_all(string=lambda t: isinstance(t, Comment))
|
package/refs/checksec.txt
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
Checksec & Binary Protections Quick Reference
|
|
2
|
-
==============================================
|
|
3
|
-
|
|
4
|
-
CHECKSEC
|
|
5
|
-
checksec ./binary Check all protections
|
|
6
|
-
checksec --file=./binary Same (explicit)
|
|
7
|
-
|
|
8
|
-
PROTECTIONS EXPLAINED
|
|
9
|
-
|
|
10
|
-
RELRO (Relocation Read-Only)
|
|
11
|
-
No RELRO GOT is writable — easy GOT overwrite
|
|
12
|
-
Partial RELRO Some sections read-only after load
|
|
13
|
-
Full RELRO GOT fully read-only — no GOT overwrite
|
|
14
|
-
|
|
15
|
-
Stack Canary
|
|
16
|
-
No canary found Stack buffer overflow is straightforward
|
|
17
|
-
Canary found Random value on stack — must leak or bypass
|
|
18
|
-
|
|
19
|
-
NX (No-Execute)
|
|
20
|
-
NX disabled Can execute shellcode on stack/heap
|
|
21
|
-
NX enabled Stack/heap not executable — use ROP/ret2libc
|
|
22
|
-
|
|
23
|
-
PIE (Position Independent Executable)
|
|
24
|
-
No PIE Binary at fixed address — addresses known
|
|
25
|
-
PIE enabled ASLR for binary — need info leak
|
|
26
|
-
|
|
27
|
-
ASLR (Address Space Layout Randomization)
|
|
28
|
-
Check: cat /proc/sys/kernel/randomize_va_space
|
|
29
|
-
0 = off, 1 = partial, 2 = full
|
|
30
|
-
Disable: echo 0 > /proc/sys/kernel/randomize_va_space
|
|
31
|
-
|
|
32
|
-
PWNTOOLS CHECKSEC
|
|
33
|
-
from pwn import *
|
|
34
|
-
e = ELF("./binary")
|
|
35
|
-
# Prints protections automatically
|
|
36
|
-
|
|
37
|
-
e.pie True/False
|
|
38
|
-
e.canary True/False
|
|
39
|
-
e.nx True/False
|
|
40
|
-
|
|
41
|
-
FILE COMMAND
|
|
42
|
-
file ./binary Architecture, linking, stripped?
|
|
43
|
-
|
|
44
|
-
READELF
|
|
45
|
-
readelf -h binary ELF header
|
|
46
|
-
readelf -S binary Section headers
|
|
47
|
-
readelf -l binary Program headers
|
|
48
|
-
readelf -s binary Symbol table
|
|
49
|
-
readelf -d binary Dynamic section
|
|
50
|
-
readelf -r binary Relocations
|
|
51
|
-
|
|
52
|
-
COMMON CTF STRATEGY
|
|
53
|
-
No canary + No PIE + No NX → Direct shellcode on stack
|
|
54
|
-
No canary + No PIE + NX → ret2libc / ROP
|
|
55
|
-
Canary + No PIE + NX → Leak canary, then ROP
|
|
56
|
-
Canary + PIE + NX → Leak canary + PIE base, ROP
|
|
57
|
-
Full RELRO + all protections → Look for format string / logic bugs
|
package/refs/curl.txt
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
cURL Quick Reference
|
|
2
|
-
====================
|
|
3
|
-
|
|
4
|
-
BASIC REQUESTS
|
|
5
|
-
curl URL GET request
|
|
6
|
-
curl -v URL Verbose output
|
|
7
|
-
curl -s URL Silent mode
|
|
8
|
-
curl -o file URL Save to file
|
|
9
|
-
curl -O URL Save with original name
|
|
10
|
-
curl -L URL Follow redirects
|
|
11
|
-
curl -I URL Headers only (HEAD)
|
|
12
|
-
|
|
13
|
-
HTTP METHODS
|
|
14
|
-
curl -X GET URL
|
|
15
|
-
curl -X POST URL
|
|
16
|
-
curl -X PUT URL
|
|
17
|
-
curl -X DELETE URL
|
|
18
|
-
curl -X PATCH URL
|
|
19
|
-
curl -X OPTIONS URL
|
|
20
|
-
|
|
21
|
-
POST DATA
|
|
22
|
-
# Form data
|
|
23
|
-
curl -X POST -d "user=admin&pass=123" URL
|
|
24
|
-
|
|
25
|
-
# JSON
|
|
26
|
-
curl -X POST -H "Content-Type: application/json" \
|
|
27
|
-
-d '{"user":"admin"}' URL
|
|
28
|
-
|
|
29
|
-
# File upload
|
|
30
|
-
curl -X POST -F "file=@localfile.txt" URL
|
|
31
|
-
|
|
32
|
-
# Raw data from file
|
|
33
|
-
curl -X POST -d @data.json URL
|
|
34
|
-
|
|
35
|
-
HEADERS
|
|
36
|
-
curl -H "Authorization: Bearer TOKEN" URL
|
|
37
|
-
curl -H "Cookie: session=abc" URL
|
|
38
|
-
curl -H "User-Agent: Mozilla/5.0" URL
|
|
39
|
-
curl -H "Content-Type: application/xml" URL
|
|
40
|
-
|
|
41
|
-
AUTHENTICATION
|
|
42
|
-
curl -u user:pass URL Basic auth
|
|
43
|
-
curl -H "Authorization: Bearer TOKEN" URL
|
|
44
|
-
|
|
45
|
-
COOKIES
|
|
46
|
-
curl -c cookies.txt URL Save cookies
|
|
47
|
-
curl -b cookies.txt URL Send cookies
|
|
48
|
-
curl -b "name=value" URL Send specific cookie
|
|
49
|
-
|
|
50
|
-
SSL / PROXY
|
|
51
|
-
curl -k URL Ignore SSL errors
|
|
52
|
-
curl --proxy http://127.0.0.1:8080 URL
|
|
53
|
-
curl --proxy socks5://127.0.0.1:1080 URL
|
|
54
|
-
curl --cacert cert.pem URL Custom CA cert
|
|
55
|
-
|
|
56
|
-
USEFUL OPTIONS
|
|
57
|
-
curl -w "%{http_code}" URL Print status code
|
|
58
|
-
curl -w "%{time_total}" URL Print response time
|
|
59
|
-
curl --max-time 5 URL Timeout (seconds)
|
|
60
|
-
curl -A "custom-agent" URL Set user-agent
|
|
61
|
-
|
|
62
|
-
CTF PATTERNS
|
|
63
|
-
# Test for SSRF
|
|
64
|
-
curl "http://target/fetch?url=http://127.0.0.1:8080"
|
|
65
|
-
|
|
66
|
-
# Cookie tampering
|
|
67
|
-
curl -b "role=admin" URL
|
|
68
|
-
|
|
69
|
-
# Header injection
|
|
70
|
-
curl -H "X-Forwarded-For: 127.0.0.1" URL
|
|
71
|
-
|
|
72
|
-
# Rate-limit bypass
|
|
73
|
-
for i in $(seq 1 100); do curl -s URL; done
|
package/refs/cyberchef.txt
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
CyberChef Quick Reference
|
|
2
|
-
=========================
|
|
3
|
-
|
|
4
|
-
CyberChef is an encoding/decoding/analysis Swiss army knife.
|
|
5
|
-
Online: https://gchq.github.io/CyberChef/
|
|
6
|
-
CLI: npm install -g cyberchef-cli
|
|
7
|
-
|
|
8
|
-
COMMON ENCODINGS
|
|
9
|
-
Base64 Encode/Decode
|
|
10
|
-
Base32 Encode/Decode
|
|
11
|
-
Hex Encode/Decode
|
|
12
|
-
URL Encode/Decode
|
|
13
|
-
HTML Entity Encode/Decode
|
|
14
|
-
Decimal (from/to)
|
|
15
|
-
Binary (from/to)
|
|
16
|
-
Octal (from/to)
|
|
17
|
-
|
|
18
|
-
CRYPTO OPERATIONS
|
|
19
|
-
AES Encrypt/Decrypt
|
|
20
|
-
DES Encrypt/Decrypt
|
|
21
|
-
XOR (with key)
|
|
22
|
-
ROT13 / ROT47
|
|
23
|
-
Vigenère Encode/Decode
|
|
24
|
-
Caesar Cipher
|
|
25
|
-
Atbash Cipher
|
|
26
|
-
Rail Fence Cipher
|
|
27
|
-
Substitution Cipher
|
|
28
|
-
|
|
29
|
-
HASHING
|
|
30
|
-
MD5 / SHA1 / SHA256 / SHA512
|
|
31
|
-
HMAC
|
|
32
|
-
CRC-16 / CRC-32
|
|
33
|
-
|
|
34
|
-
DATA FORMAT
|
|
35
|
-
From/To Hex
|
|
36
|
-
From/To Base64
|
|
37
|
-
From/To Binary
|
|
38
|
-
Parse IP / URL
|
|
39
|
-
Parse JSON / XML / CSV
|
|
40
|
-
|
|
41
|
-
ANALYSIS
|
|
42
|
-
Frequency Analysis
|
|
43
|
-
Entropy
|
|
44
|
-
Magic (auto-detect encoding)
|
|
45
|
-
Strings
|
|
46
|
-
Disassemble
|
|
47
|
-
|
|
48
|
-
USEFUL RECIPES (for CTF)
|
|
49
|
-
|
|
50
|
-
# Multi-layer decode
|
|
51
|
-
Base64 → Hex → XOR
|
|
52
|
-
|
|
53
|
-
# ROT13
|
|
54
|
-
ROT13("Uryyb") → "Hello"
|
|
55
|
-
|
|
56
|
-
# XOR brute force
|
|
57
|
-
XOR Brute Force (key length 1)
|
|
58
|
-
|
|
59
|
-
# Magic (auto-detect)
|
|
60
|
-
Drag data → "Magic" operation → auto-detects encoding
|
|
61
|
-
|
|
62
|
-
# Extract strings
|
|
63
|
-
"Strings" operation with min length
|
|
64
|
-
|
|
65
|
-
COMMAND LINE (cyberchef-cli)
|
|
66
|
-
echo "SGVsbG8=" | cyberchef "from_base64"
|
|
67
|
-
echo "48656c6c6f" | cyberchef "from_hex"
|
|
68
|
-
echo "Hello" | cyberchef "to_base64"
|
|
69
|
-
echo "data" | cyberchef "xor({'key':'secret'})"
|
|
70
|
-
|
|
71
|
-
COMMON CTF WORKFLOW
|
|
72
|
-
1. Paste unknown data into CyberChef
|
|
73
|
-
2. Use "Magic" to auto-detect encoding
|
|
74
|
-
3. Chain operations (drag & drop)
|
|
75
|
-
4. Common chains:
|
|
76
|
-
- Base64 → Gunzip → output
|
|
77
|
-
- Hex → From Hex → XOR → output
|
|
78
|
-
- URL Decode → Base64 → output
|
package/refs/exiftool.txt
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
ExifTool Quick Reference
|
|
2
|
-
========================
|
|
3
|
-
|
|
4
|
-
BASIC USAGE
|
|
5
|
-
exiftool file Show all metadata
|
|
6
|
-
exiftool -s file Short tag names
|
|
7
|
-
exiftool -G file Show group names
|
|
8
|
-
exiftool -json file JSON output
|
|
9
|
-
exiftool -a -u file All tags, including unknown
|
|
10
|
-
|
|
11
|
-
SPECIFIC TAGS
|
|
12
|
-
exiftool -ImageWidth file Single tag
|
|
13
|
-
exiftool -GPSLatitude file GPS location
|
|
14
|
-
exiftool -Comment file Comments
|
|
15
|
-
exiftool -Author file Author
|
|
16
|
-
exiftool -CreateDate file Creation date
|
|
17
|
-
|
|
18
|
-
WRITE METADATA
|
|
19
|
-
exiftool -Comment="text" file Set comment
|
|
20
|
-
exiftool -Author="name" file Set author
|
|
21
|
-
exiftool -all= file Remove ALL metadata
|
|
22
|
-
exiftool -overwrite_original file Don't create backup
|
|
23
|
-
|
|
24
|
-
BATCH OPERATIONS
|
|
25
|
-
exiftool *.jpg All JPEGs
|
|
26
|
-
exiftool -r directory/ Recursive
|
|
27
|
-
exiftool -ext jpg directory/ Only .jpg files
|
|
28
|
-
|
|
29
|
-
COMPARE
|
|
30
|
-
exiftool -a -u file1 file2 Compare metadata
|
|
31
|
-
|
|
32
|
-
COMMON CTF PATTERNS
|
|
33
|
-
# Check for hidden data in comments
|
|
34
|
-
exiftool -Comment image.jpg
|
|
35
|
-
exiftool -UserComment image.jpg
|
|
36
|
-
|
|
37
|
-
# Check GPS coordinates (physical location clue)
|
|
38
|
-
exiftool -GPSPosition image.jpg
|
|
39
|
-
|
|
40
|
-
# Check for steganography hints
|
|
41
|
-
exiftool -all image.png | grep -i "comment\|software\|description"
|
|
42
|
-
|
|
43
|
-
# Thumbnail extraction
|
|
44
|
-
exiftool -b -ThumbnailImage image.jpg > thumb.jpg
|
|
45
|
-
|
|
46
|
-
# Check if image was edited
|
|
47
|
-
exiftool -Software -ModifyDate image.jpg
|
|
48
|
-
|
|
49
|
-
# Hidden data in XMP
|
|
50
|
-
exiftool -xmp:all image.png
|
package/refs/ffuf.txt
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
FFUF (Fuzz Faster U Fool) Quick Reference
|
|
2
|
-
==========================================
|
|
3
|
-
|
|
4
|
-
BASIC USAGE
|
|
5
|
-
ffuf -w wordlist.txt -u http://target/FUZZ
|
|
6
|
-
|
|
7
|
-
DIRECTORY FUZZING
|
|
8
|
-
ffuf -w /usr/share/wordlists/dirb/common.txt \
|
|
9
|
-
-u http://target/FUZZ
|
|
10
|
-
|
|
11
|
-
ffuf -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt \
|
|
12
|
-
-u http://target/FUZZ
|
|
13
|
-
|
|
14
|
-
FILE FUZZING
|
|
15
|
-
ffuf -w wordlist.txt -u http://target/FUZZ.php
|
|
16
|
-
ffuf -w wordlist.txt -u http://target/FUZZ -e .php,.html,.txt,.bak
|
|
17
|
-
|
|
18
|
-
PARAMETER FUZZING
|
|
19
|
-
ffuf -w params.txt -u "http://target/page?FUZZ=test"
|
|
20
|
-
ffuf -w values.txt -u "http://target/page?param=FUZZ"
|
|
21
|
-
|
|
22
|
-
POST DATA FUZZING
|
|
23
|
-
ffuf -w wordlist.txt -u http://target/login \
|
|
24
|
-
-X POST -d "user=admin&password=FUZZ" \
|
|
25
|
-
-H "Content-Type: application/x-www-form-urlencoded"
|
|
26
|
-
|
|
27
|
-
HEADER FUZZING
|
|
28
|
-
ffuf -w wordlist.txt -u http://target/ \
|
|
29
|
-
-H "X-Custom-Header: FUZZ"
|
|
30
|
-
|
|
31
|
-
SUBDOMAIN FUZZING
|
|
32
|
-
ffuf -w subdomains.txt -u http://FUZZ.target.com
|
|
33
|
-
ffuf -w subdomains.txt -u http://target.com \
|
|
34
|
-
-H "Host: FUZZ.target.com"
|
|
35
|
-
|
|
36
|
-
VHOST FUZZING
|
|
37
|
-
ffuf -w vhosts.txt -u http://target.com \
|
|
38
|
-
-H "Host: FUZZ" -fs 4242
|
|
39
|
-
|
|
40
|
-
FILTERING
|
|
41
|
-
-fc 404 Filter by status code
|
|
42
|
-
-fc 404,403 Multiple codes
|
|
43
|
-
-fs 4242 Filter by response size
|
|
44
|
-
-fw 12 Filter by word count
|
|
45
|
-
-fl 5 Filter by line count
|
|
46
|
-
-fr "Not Found" Filter by regex
|
|
47
|
-
-mc 200 Match only status 200
|
|
48
|
-
-ms 1234 Match by size
|
|
49
|
-
|
|
50
|
-
OPTIONS
|
|
51
|
-
-t 50 Threads (default 40)
|
|
52
|
-
-rate 100 Requests per second limit
|
|
53
|
-
-timeout 5 Timeout in seconds
|
|
54
|
-
-r Follow redirects
|
|
55
|
-
-c Colorize output
|
|
56
|
-
-o output.json Save output
|
|
57
|
-
-of json Output format
|
|
58
|
-
-v Verbose
|
|
59
|
-
-s Silent (only results)
|
|
60
|
-
|
|
61
|
-
RECURSIVE
|
|
62
|
-
ffuf -w wordlist.txt -u http://target/FUZZ \
|
|
63
|
-
-recursion -recursion-depth 2
|
|
64
|
-
|
|
65
|
-
MULTIPLE WORDLISTS
|
|
66
|
-
ffuf -w users.txt:USER -w passes.txt:PASS \
|
|
67
|
-
-u http://target/login \
|
|
68
|
-
-X POST -d "user=USER&pass=PASS" \
|
|
69
|
-
-mode clusterbomb
|
|
70
|
-
|
|
71
|
-
MODES
|
|
72
|
-
clusterbomb All combinations (default for multi)
|
|
73
|
-
pitchfork Paired (line by line)
|
package/refs/gcc.txt
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
GCC Compiler Quick Reference
|
|
2
|
-
============================
|
|
3
|
-
|
|
4
|
-
BASIC COMPILATION
|
|
5
|
-
gcc -o output source.c Compile C
|
|
6
|
-
g++ -o output source.cpp Compile C++
|
|
7
|
-
gcc -c source.c Compile only (no link)
|
|
8
|
-
gcc -S source.c Generate assembly
|
|
9
|
-
gcc -E source.c Preprocess only
|
|
10
|
-
|
|
11
|
-
OPTIMIZATION
|
|
12
|
-
gcc -O0 source.c No optimization (debug)
|
|
13
|
-
gcc -O1 source.c Basic optimization
|
|
14
|
-
gcc -O2 source.c Standard optimization
|
|
15
|
-
gcc -O3 source.c Aggressive optimization
|
|
16
|
-
gcc -Os source.c Optimize for size
|
|
17
|
-
|
|
18
|
-
DEBUG
|
|
19
|
-
gcc -g source.c Debug symbols (for GDB)
|
|
20
|
-
gcc -ggdb source.c GDB-specific debug info
|
|
21
|
-
|
|
22
|
-
WARNINGS
|
|
23
|
-
gcc -Wall source.c All common warnings
|
|
24
|
-
gcc -Wextra source.c Extra warnings
|
|
25
|
-
gcc -Werror source.c Treat warnings as errors
|
|
26
|
-
gcc -pedantic source.c Strict standard compliance
|
|
27
|
-
|
|
28
|
-
SECURITY FLAGS
|
|
29
|
-
# Disable protections (for exploit development)
|
|
30
|
-
gcc -fno-stack-protector -z execstack -no-pie source.c -o vuln
|
|
31
|
-
|
|
32
|
-
# Disable specific protections
|
|
33
|
-
-fno-stack-protector Disable stack canary
|
|
34
|
-
-z execstack Make stack executable (disable NX)
|
|
35
|
-
-no-pie Disable PIE
|
|
36
|
-
-Wl,-z,norelro Disable RELRO
|
|
37
|
-
|
|
38
|
-
# Enable protections
|
|
39
|
-
-fstack-protector-all Enable stack canary
|
|
40
|
-
-pie -fPIE Enable PIE
|
|
41
|
-
-Wl,-z,relro,-z,now Full RELRO
|
|
42
|
-
-D_FORTIFY_SOURCE=2 Buffer overflow detection
|
|
43
|
-
|
|
44
|
-
LINKING
|
|
45
|
-
gcc source.c -lm Link math library
|
|
46
|
-
gcc source.c -lpthread Link pthreads
|
|
47
|
-
gcc source.c -lcrypto Link OpenSSL crypto
|
|
48
|
-
gcc -static source.c Static linking
|
|
49
|
-
|
|
50
|
-
ARCHITECTURE
|
|
51
|
-
gcc -m32 source.c Compile 32-bit
|
|
52
|
-
gcc -m64 source.c Compile 64-bit
|
|
53
|
-
gcc -march=native source.c Native architecture
|
|
54
|
-
|
|
55
|
-
COMMON CTF PATTERNS
|
|
56
|
-
# Compile vulnerable binary for practice
|
|
57
|
-
gcc -fno-stack-protector -z execstack -no-pie -o vuln vuln.c
|
|
58
|
-
|
|
59
|
-
# Compile with debug symbols for reversing practice
|
|
60
|
-
gcc -g -O0 -o binary source.c
|
|
61
|
-
|
|
62
|
-
# Compile shellcode runner
|
|
63
|
-
gcc -z execstack -o runner runner.c
|
|
64
|
-
|
|
65
|
-
# Cross-compile
|
|
66
|
-
gcc -m32 -o binary32 source.c
|
package/refs/gdb.txt
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
GDB / pwndbg Quick Reference
|
|
2
|
-
============================
|
|
3
|
-
|
|
4
|
-
STARTING
|
|
5
|
-
gdb ./binary Start debugging
|
|
6
|
-
gdb -q ./binary Quiet mode
|
|
7
|
-
gdb -p PID Attach to process
|
|
8
|
-
gdb -args ./binary arg1 arg2 With arguments
|
|
9
|
-
|
|
10
|
-
RUNNING
|
|
11
|
-
r / run Start program
|
|
12
|
-
r < input.txt With stdin from file
|
|
13
|
-
c / continue Continue execution
|
|
14
|
-
n / next Step over
|
|
15
|
-
s / step Step into
|
|
16
|
-
ni / si Next/step instruction
|
|
17
|
-
finish Run until return
|
|
18
|
-
kill Kill program
|
|
19
|
-
|
|
20
|
-
BREAKPOINTS
|
|
21
|
-
b main Break at function
|
|
22
|
-
b *0x401000 Break at address
|
|
23
|
-
b file.c:42 Break at line
|
|
24
|
-
b *main+50 Break at offset
|
|
25
|
-
info b List breakpoints
|
|
26
|
-
delete N Delete breakpoint N
|
|
27
|
-
disable N Disable breakpoint
|
|
28
|
-
enable N Enable breakpoint
|
|
29
|
-
watch *0x601000 Watchpoint (break on write)
|
|
30
|
-
|
|
31
|
-
EXAMINING
|
|
32
|
-
x/10x $rsp 10 hex words from RSP
|
|
33
|
-
x/20i $rip 20 instructions from RIP
|
|
34
|
-
x/s addr String at address
|
|
35
|
-
x/10gx addr 10 giant (64-bit) hex values
|
|
36
|
-
x/10wx addr 10 word (32-bit) hex values
|
|
37
|
-
x/10bx addr 10 bytes hex
|
|
38
|
-
|
|
39
|
-
p $rax Print register
|
|
40
|
-
p/x $rax Print in hex
|
|
41
|
-
p (int)$rax Print as int
|
|
42
|
-
info reg All registers
|
|
43
|
-
|
|
44
|
-
MEMORY
|
|
45
|
-
vmmap Memory map (pwndbg)
|
|
46
|
-
search -s "flag" Search memory for string
|
|
47
|
-
search -x 4141 Search for hex pattern
|
|
48
|
-
|
|
49
|
-
STACK
|
|
50
|
-
bt / backtrace Call stack
|
|
51
|
-
frame N Switch frame
|
|
52
|
-
info frame Frame details
|
|
53
|
-
|
|
54
|
-
PWNDBG SPECIFIC
|
|
55
|
-
checksec Security mitigations
|
|
56
|
-
got GOT entries
|
|
57
|
-
plt PLT entries
|
|
58
|
-
heap Heap overview
|
|
59
|
-
bins Heap bins
|
|
60
|
-
telescope 20 Smart stack view
|
|
61
|
-
cyclic 200 Generate pattern
|
|
62
|
-
cyclic -l 0x41414141 Find pattern offset
|
|
63
|
-
rop ROP gadgets
|
|
64
|
-
canary Show stack canary
|
|
65
|
-
libc Libc base address
|
|
66
|
-
|
|
67
|
-
SET VALUES
|
|
68
|
-
set $rax = 0 Set register
|
|
69
|
-
set *(int*)0x601000 = 42 Set memory
|
|
70
|
-
set args "AAAA" Set arguments
|
|
71
|
-
|
|
72
|
-
COMMON CTF PATTERNS
|
|
73
|
-
# Find buffer overflow offset
|
|
74
|
-
cyclic 200 > pattern.txt
|
|
75
|
-
r < pattern.txt
|
|
76
|
-
# After crash:
|
|
77
|
-
cyclic -l $rsp
|
|
78
|
-
|
|
79
|
-
# Bypass check
|
|
80
|
-
b *check_password
|
|
81
|
-
r
|
|
82
|
-
set $rax = 1
|
|
83
|
-
c
|