This repository was archived by the owner on Mar 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhistory
587 lines (587 loc) · 15.8 KB
/
history
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
1 sudo userdel -r pi
2 exit
3 sudo raspi-config
4 clear
5 ping www.google.com
6 sudo reboot
7 ifconfig
8 sudo raspi-config
9 ifconfig
10 ping www.google.com
11 sudo raspi-config
12 ping www.google.com
13 ifconfig
14 sudo reboot
15 ping www.google.com
16 sudo apt update
17 man ping
18 ping www.google.com -4
19 ping google.de
20 ping google.de -4
21 ping www.google.de
22 ping www.google.de -4
23 sudo shutdown
24 shutdown now
25 sudo apt update
26 ip r
27 ip a
28 sudo apt update
29 ping www.google.com
30 history
31 ping www.google.com -4
32 ifconfig
33 ping www.google.com -4
34 ping www.google.com
35 sudo reboot
36 ping www.google.com
37 sudo apt update
38 sudo raspi-config
39 sudo reboot
40 ls
41 ls -la
42 sudo apt update
43 ip a
44 sudo shutdown now
45 ifconfig
46 sudo reboot
47 ifconfig
48 exit
49 ifconfig
50 sudo apt update
51 sudo apt upgrade
52 sudo less /etc/wpa_supplicant/wpa_supplicant.conf
53 cd /etc/wpa_supplicant/
54 ll
55 ls -la
56 sudo less /etc/wpa_supplicant/wpa_supplicant.conf
57 sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
58 sudo service networking restart
59 ifconfig
60 sudo reboot
61 sudo apt install neofetch
62 neofetch
63 pinout
64 sudo apt install pinout
65 gpio
66 pinentry
67 sudo apt install python3-gpiozero
68 pinout .
69 pinout
70 uname -r
71 less /etc/dhcpcd.conf
72 man dhcpcd.conf
73 man cp
74 cp /etc/dhcpcd.conf /etc/dhcpcd.conf.original
75 sudo cp /etc/dhcpcd.conf /etc/dhcpcd.conf.original
76 cd /etc/
77 ls -la
78 cd
79 ls -la
80 nano .bash_aliases
81 source .bashrc
82 ll
83 less .bashrc
84 pwd
85 cd /
86 ll
87 cd dev/
88 ll
89 cd ..
90 ll
91 exit
92 uname
93 man uname
94 uname -p
95 neofetch
96 sudo shutdown now
97 sudo raspi-config
98 less /boot/config.txt
99 nano /boot/config.txt
100 sudo nano /boot/config.txt
101 history
102 sudo -s
103 sudo less /etc/hostname
104 sudo less /etc/hosts
105 sudo cat dns-fw > /etc/hostname
106 sudo less /etc/hostname
107 sudo raspi-config
108 ifconfig
109 sa update
110 sa upgrade
111 history
112 sudo raspi-config
113 sudo apt update
114 man apt
115 fw@dns-firewall:~ $ sudo raspi-config
116 fw@dns-firewall:~ $ sudo apt update
117 Hit:1 http://archive.raspberrypi.org/debian buster InRelease
118 Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
119 Reading package lists... Done
120 Building dependency tree
121 Reading state information... Done
122 All packages are up to date.
123 fw@dns-firewall:~ $ man apt
124 fw@dns-firewall:~ $
125 id -un
126 man id
127 id -u
128 id -n
129 id -un
130 stty size
131 ip route get 8.8.8.8
132 route=$(ip route get 8.8.8.8)route=$(ip route get 8.8.8.8) route=$(ip route get 8.8.8.8)
133 $route
134 cat $route
135 printf $route
136 echo $route
137 sudo apt list
138 apt list
139 apt list > apt_packages_20200321
140 less apt_packages_20200321
141 apt list --installed > apt_packages_20200321
142 apt list --installed
143 clear
144 exit
145 man awk
146 man whiptail
147 is_command php
148 command -v "${check_command}" >/dev/null 2>&1
149 command -v php >/dev/null 2>&1
150 command -v php >/dev/null 2>&1
151 command -v "php" >/dev/null 2>&1
152 command -v "php"
153 command -v php
154 php
155 command -v less
156 command -v less >/dev/null 2>&1
157 command -v less >/dev/null
158 command -v less
159 command -v apt
160 ip --oneline link show up | grep -v "lo" | awk '{print $2}' | cut -d':' -f1 | cut -d'@' -f1
161 ip --oneline link show up
162 ip --oneline link show up | grep -v "lo"
163 man grep
164 ip --oneline link show up | grep -v "lo" | awk '{print $2}'
165 ip --oneline link show up | grep -v "lo" | awk '{print $2}' | cut -d':' -f1
166 ip --oneline link show up | grep -v "lo" | awk '{print $2}' | cut -d':' -f1 | cut -d'@' -f1
167 sudo nano /boot/config.txt
168 sudo shutdown now
169 exit
170 clear
171 man dhcpcd
172 man nmap
173 sa install nmap
174 man nmap
175 man dhcpcd
176 exit
177 sudo nano /etc/dhcpcd.conf
178 sudo reboot
179 tty
180 sa update
181 sudo apt update
182 sudo apt upgrade
183 sa install bind9 bind9utils dnsutils
184 sudo service
185 man service
186 sudo service --status-all
187 sudo service bind9 stop
188 sudo service --status-all
189 sudo service bind9 status
190 exit
191 nterface ${PIHOLE_INTERFACE}
192 ip a
193 ip6
194 ip r
195 ping hm.edu
196 tty
197 man tty
198 who
199 who -a
200 w
201 cd /etc/bind/
202 ll
203 sudo nano named.conf
204 sudo nano named.conf.options
205 sudo nano named.conf.local
206 sa install bind9-docs
207 sa install bind9-doc
208 history
209 man apt install
210 man apt-get
211 sudo apt install bind9 bind9-doc bind9utils dnsutils -y
212 sudo crontab -l
213 crontab -l
214 less /etc/crontab
215 exit
216 cd /etc/bind/
217 ll
218 sudo nano named.conf.options
219 sudo named-checkconf
220 sudo nano named.conf.options
221 sudo named-checkconf
222 sudo service restart bind9
223 sudo service start bind9
224 sudo systemctl restart bind9
225 sudo journalctl -u bind9 -f
226 sudo service --status-all
227 ip --oneline link show up | grep -v "lo" | awk '{print $2}' | cut -d':' -f1
228 sudo nano /etc/dhcpcd.conf
229 sudo reboot
230 who
231 ping -c 1 google.com
232 dig hm.edu
233 dig cs.hm.edu
234 dig ts.cs.hm.edu
235 dig xbox.com
236 dig fritz.box
237 less /etc/resolv.conf
238 [email protected] fritz.box
239 dig @127.0.0.1 fritz.box
240 dig @127.0.0.1 hm.edu
241 sudo nano /etc/dhcpcd.conf
242 ip
243 ip a
244 ip adress show
245 ip address show
246 less /etc/dhcpcd.conf
247 sudo nano /etc/dhcpcd.conf
248 sudo service networking restart
249 less /etc/resolv.conf
250 resolvconf
251 cd /etc/
252 ls -la resolv
253 ls -la
254 less resolvconf.conf
255 less resolv.conf
256 sudo reboot
257 sudo journalctl -u bind9 -f
258 man journalctl
259 cd /etc/bind/
260 ll
261 less named.conf.options
262 ifconfig
263 ip r
264 which dhcpcd
265 systemctl status dhcpcd
266 history | grep systemctl
267 sudo journalctl -u dhcpcd -f
268 cat /etc/resolv.conf
269 ping fd00::ca0e:14ff:fea6:3e61
270 dig hm.edu
271 ip a
272 sudo reboot
273 cat /etc/resolv.conf
274 cd /etc/resolvconf/
275 ll
276 cd update-libc.d/
277 ll
278 ..
279 cd ..
280 ls -la
281 cat resolvconf.conf
282 cat /etc/resolv.conf
283 dig hm.edu
284 sudo reboot
285 cd /etc/bind/
286 ll
287 sudo nano named.conf.local
288 sudo less named.conf.default-zones
289 sudo less named.conf.options
290 sudo less zones.rfc1918
291 sudo less db.0
292 sudo less db.local
293 sudo less named.conf.default-zones
294 sudo nano named.conf.options
295 sudo nano db.blocked
296 fg
297 ll
298 less named.conf
299 sudo nano named.conf.local
300 less named.conf.default-zones
301 sudo nano named.conf.local
302 sudo nano named.conf.options
303 sudo nano named.conf.local
304 sudo named-checkconf
305 sudo systemctl bind9 restart
306 sudo systemctl bind restart
307 history | grep systemctl
308 sudo systemctl restart bind9
309 less db.blocked
310 dig hm.edu
311 # doesnt work yet
312 history
313 exit
314 cat /etc/resolv.conf
315 dig hm.edu
316 sudo service bind9 status
317 cd /etc/bind
318 ll
319 sudo nano db.blocked
320 less db.0
321 less db.local
322 clear
323 sudo service bind9 status
324 neofetch
325 exit
326 sudo service bind9 status
327 neofetch
328 sa install openssh-server
329 exit
330 sudo nano /etc/sudoers.d/010_pi-nopasswd
331 sudo nano /etc/ssh/sshd_config
332 exit
333 ll
334 cd .ssh/
335 ll
336 cat authorized_keys
337 exit
338 python
339 python3
340 history
341 history | grep ctl
342 ll /etc/bind
343 man cp
344 sudo cp db.blocked rpz.block
345 cd /etc/bind
346 sudo cp db.blocked rpz.block
347 ll
348 sudo nano named.conf.options
349 sudo nano named.conf.local
350 ll
351 sudo named-checkconf
352 sudo service restart bind9
353 sudo systemctl restart bind9
354 sudo journalctl -u bind9 -f
355 sudo python3
356 /bin/bash
357 /bin/bash echo $0
358 /bin/bash "echo $0"
359 which /bin/bash
360 man bash
361 $0
362 echo $0
363 which /bin/sh
364 sh
365 env
366 sudo python3
367 ll
368 ..
369 cd ..
370 ll
371 less dhcpcd.conf
372 less dhcpcd.conf.original
373 man cp
374 less dhcpcd.conf
375 exit
376 nmap
377 nmap -sL
378 nmap -sL 192.168.178.0/24
379 ip a
380 nmap -sn 192.168.178.0/24
381 nmap -sL 192.168.178.0/24
382 nmap -sn 192.168.178.0/24
383 nmap -sn 192.168.178.0/24 --dns-servers 192.168.178.1
384 man nmap
385 nmap -sP -n 192.168.178.0/24
386 nmap -sP -n 192.168.178.0/24 --dns-servers 192.168.178.1
387 nmap -sP -n 192.168.178.0/24 --dns-servers 192.168.178.1 -v
388 nmap -sP -n 192.168.178.0/24 --dns-servers 192.168.178.1 -T0
389 nmap -sP -n 192.168.178.0/24 --dns-servers 192.168.178.1 -T2
390 nmap -sP -n 192.168.178.0/24 --dns-servers 192.168.178.1 -T3
391 nmap -sP 192.168.178.0/24 --dns-servers 192.168.178.1 -T3
392 nmap -sP -n 192.168.178.0/24 --dns-servers 192.168.178.1
393 nmap -sn -n 192.168.178.0/24 --dns-servers 192.168.178.1
394 arp -a -n
395 nmap -Pn -n 192.168.178.0/24
396 nmap -Pn -sn 192.168.178.0/24
397 sudo nmap -sn -n 192.168.178.0/24
398 sudo nmap -sn -n 192.168.178.0/24 --dns-servers 192.168.178.1
399 sudo nmap -sn 192.168.178.0/24 --dns-servers 192.168.178.1
400 sudo nmap -sn -R 192.168.178.0/24 --dns-servers 192.168.178.1
401 sudo nmap -sn -n 192.168.178.0/24
402 ip a
403 man ip
404 ip addr
405 ip addr -4
406 ip -4
407 ip < -4
408 ip a -4
409 man ip
410 sudo python3
411 ip addr show eth0 | grep inet
412 ip addr show eth0 | grep "inet "
413 ip a show eth0
414 ip p
415 ip help
416 ip route
417 hostname -i
418 ip addr show eth0 | grep "inet " | cut -f2
419 ip addr show eth0 | grep "inet " | cut -f1
420 ip addr show eth0 | grep "inet " | cut -f4
421 ip addr show eth0 | grep "inet " | cut -d. -f4
422 ip addr show eth0 | grep "inet " | cut -d -f4
423 cut --help
424 ip addr show eth0 | grep "inet " | cut -d " " -f2
425 ip addr show eth0 | grep "inet " | cut -d " " -f1
426 ip addr show eth0 | grep "inet " | cut -d " " -f3
427 ip addr show eth0 | grep "inet " | cut -d " "
428 ip addr show eth0 | grep "inet " | cut -d " " -f2
429 ip addr show eth0 | grep "inet " | cut -d ' ' -f2
430 ip addr show eth0 | grep "inet " | awk {print $2}
431 ip addr show eth0 | grep "inet " | awk "{print $2}"
432 ip addr show eth0 | grep "inet " | awk "{print $1}"
433 ip addr show eth0 | grep "inet " | awk '{print $1}'
434 ip addr show eth0 | grep "inet " | awk '{print $2}'
435 ip addr show eth0 | grep 'inet ' | awk '{print $2}'
436 ip route
437 ip addr show eth0 | grep "inet "
438 ip addr show eth0
439 ip route | awk '{print $1, $2}'
440 ip route | grep 'default' | awk '{print $1, $2}'
441 ip route | grep 'default' | awk '{print $3, $7}'
442 git
443 sa install git
444 git
445 git checkout https://github.com/freinold/dns-firewall.git
446 git checkout https://github.com/freinold/dns-firewall
447 git clone https://github.com/freinold/dns-firewall.git
448 mkdir .ssh
449 cd .ssh
450 ll
451 ssh-keygen
452 ll
453 less id_rsa.pub
454 git clone [email protected]:freinold/dns-firewall.git
455 ll
456 rm -r dns-firewall/
457 cd
458 git clone [email protected]:freinold/dns-firewall.git
459 ll
460 cd dns-firewall/
461 ll
462 sudo python3 main.py
463 git pull
464 sudo python3 main.py
465 sudo python3
466 git pull
467 sudo python3 main.py
468 git pull
469 sudo python3 main.py
470 cat /etc/dns-fw/log
471 rmdir /etc/dns-fw/
472 sudo rmdir /etc/dns-fw/
473 ll /etc/dns-fw/
474 sudo rmdir /etc/dns-fw/ -r
475 sudo rm /etc/dns-fw/ -r
476 git pull
477 sudo python3 main.py
478 git pull
479 sudo python3 main.py
480 sudo rm /etc/dns-fw/ -r
481 sudo python3 main.py
482 history
483 clean
484 clear
485 git pull
486 sudo rm /etc/dns-fw/ -r
487 sudo python3 main.py
488 less /etc/dns-fw/log
489 sudo less /etc/dns-fw/log
490 sudo cat /etc/dns-fw/log
491 git pull
492 sudo rm /etc/dns-fw/ -r
493 sudo python3 main.py
494 sudo cat /etc/dns-fw/log
495 man grep
496 ip route | grep -v 'default' | awk '{print $1, $2}'
497 ip route | grep -v 'default' | awk '{print $1}'
498 history
499 history > history.txt
500 git add history.txt
501 git commit -m "History file"
502 git config user.email "[email protected]"
503 git config user.name "Fabian Reinold"
504 git config user.name
505 git commit -m "History file"
506 git push
507 sudo nmap -sn -n 192.168.178.0/24
508 man
509 man nmap
510 sudo nmap -sn -n 192.168.178.0/24 --exclude 192.168.178.2
511 sudo nmap -sn -n 192.168.178.0/24 --exclude 192.168.178.2 | grep 'scan report'
512 sudo nmap -sn -n 192.168.178.0/24 --exclude 192.168.178.2 | grep 'scan report' | awk '{print $5}'
513 git pull
514 sudo python3 main.py
515 git pull
516 sudo python3 main.py
517 git pull
518 sudo python3 main.py
519 git pull
520 sudo python3 main.py
521 git pull
522 sudo python3 main.py
523 git pull
524 sudo python3 main.py
525 git pull
526 sudo python3 main.py
527 git pull
528 sudo python3 main.py
529 git pull
530 sudo python3 main.py
531 git pull
532 sudo python3 main.py
533 git pull
534 sudo python3 main.py
535 sudo nmap -sn -n 192.168.178.0/24 --exclude 192.168.178.2 | grep 'scan report'
536 sudo nmap -sn -n 192.168.178.0/24 --exclude 192.168.178.2 | grep 'scan report' | awk '{print $5}'
537 git pull
538 sudo python3 main.py
539 less /etc/dns-fw/log
540 sudo less /etc/dns-fw/log
541 nano main.py
542 sudo python3 main.py
543 sudo less /etc/dns-fw/log
544 sudo rm /etc/dns-fw/log
545 sudo python3 main.py
546 sudo less /etc/dns-fw/log
547 nano main.py
548 sudo python3 main.py
549 git commit -m "Fixed nmap error by stripping parameter of newline"
550 git add .
551 git commit -m "Fixed nmap error by stripping parameter of newline"
552 git push
553 git pull
554 sudo python3 main.py
555 sudo less /etc/dns-fw/log
556 git pull
557 sudo python3 main.py
558 nano main.py
559 sudo python3 main.py
560 sudo less /etc/dns-fw/log
561 sudo rm /etc/dns-fw/log
562 sudo python3 main.py
563 sudo less /etc/dns-fw/log
564 sudo cat /etc/dns-fw/log
565 less /etc/dhcpcd.conf
566 ll /etc
567 sudo rm /etc/dhcpcd.conf.original
568 sudo nano /etc/dhcpcd.conf
569 git pull
570 git diff
571 git add
572 git add .
573 git commit -m "Changed log level to INFO"
574 git push
575 git pull
576 git push
577 exit
578 cd dns-firewall/
579 cp /etc/dhcpcd.conf ./dhcpcd.conf
580 ll
581 nano dhcpcd.conf
582* git pull
583 sudo python3 main.py
584 nano main.py
585 sudo python3 main.py
586 rm history history.txt
587 history > history