-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathVulnHub Typhoon (Beginner-Medium)
3165 lines (2684 loc) · 136 KB
/
VulnHub Typhoon (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 Typhoon VulnHub VM CTF
=======================================================================================
Step 1. Scanning & Enumeration
> Nmap + Nikto + Dirb + Searchsploit + Enum4linux + Showmount + FTP test + Metasploit modules
Step 2. Gaining Access
> Apache Struts Web server (TCP 8080)
+ CVE-2017-5638 - Apache Struts 2.3.5 < 2.3.31 / 2.5 < 2.5.10 - Remote Code Execution vulnerability
> Apache Tomcat Web server (TCP 8080)
+ Default Apache Tomcat manager credentials (tomcat:tomcat)
=> Upload of a JSP webshell
> Apache Web server (TCP 8080)
+ Dangerous PUT Http method enabled
=> Upload of a webshell
> Apache Web server (TCP 80)
+ CVE-2014-6271 - Apache CGI-BIN Shellshock - Remote Code Execution vulnerability
> PhpMoAdmin
+ CVE-2015-2208 - PhpMoAdmin 1.1.2 - Remote Code Execution vulnerability
> LotusCMS web app
+ CVE-2011-0518 - LotusCMS 3.0 - Eval() Remote Command Execution vulnerability
> CUPS 1.7 (TCP 631)
+ Vulnerable version of CUPS 1.7 (Shellshock RCE but need creds)
+ Dangerous PUT Http method enabled => Upload of a webshell
> Postgresql database
+ Default Postgresql database credentials (postgres:postgres)
+ Possibility to read file on the server (MSF 'auxiliary/admin/postgres/postgres_readfile')
+ Password reuse on Linux (SSH)
> MongoDB database
+ Unauthenticated access to MongoDB Http and database servers
=> login with no password with a db client (MongoDB Compass Community)
=> Then click on the 'credentials' database
=> Then click on the collection 'credentials.creds' which contains clear-text linux creds (typhoon:789456123)
+ Linux password disclosure in MongoDB HTTP server (typhoon:789456123)
> SAMBA file server
+ Samba 3.5.0 - 4.5.4/4.5.10/4.4.14 Remote Code Execution (python exploit doesn't work but metapsloit yes...)
+ Unauthenticated access to SMB/SAMBA shares
> REDIS database
+ Unauthenticated access to Redis (use the Mespaloit scanner 'scanner/redis/redis_login')
+ File upload feature to add our ssh key using Metasploit 'auxiliary/scanner/redis/file_upload'
> Unauthenticated access to an NFS export share
> Unauthenticated access to an FTP server
Step 3. Linux enumeration (Manual search + scripts: "LinEnum.sh" & "Linux-exploit-suggester.sh")
Step 4. Privilege escalation to root
> Method 1: the binary 'Vim.basic' is SUID 'root'
> Method 2: the linux account 'admin' has SUDO all
> Method 3: Linux kernel exploits:
+ CVE-2016-5195 - Dirtycow
+ CVE-2015-1328 - Overlayfs
========================================================================================================
Currently scanning: 192.168.78.0/16 | Screen View: Unique Hosts
16 Captured ARP Req/Rep packets, from 5 hosts. Total size: 996
_____________________________________________________________________________
IP At MAC Address Count Len MAC Vendor / Hostname
-----------------------------------------------------------------------------
192.168.1.3 14:0c:76:53:4d:4e 1 60 FREEBOX SAS
192.168.1.29 f4:5c:89:c9:be:c5 1 60 Apple, Inc.
192.168.1.254 68:a3:78:8b:0c:dd 5 336 FREEBOX SAS
192.168.1.104 08:00:27:34:bf:f6 8 480 PCS Systemtechnik GmbH
192.168.27.1 14:0c:76:53:4d:4e 1 60 FREEBOX SAS
========================================================================================================
root@Security-Audit-01:~# nmap -sC -sS -sV -P0 -p- 192.168.1.104
Starting Nmap 7.70 ( https://nmap.org ) at 2019-02-02 01:45 CET
Stats: 0:00:52 elapsed; 0 hosts completed (1 up), 1 undergoing Service Scan
Service scan Timing: About 95.83% done; ETC: 01:46 (0:00:02 remaining)
Nmap scan report for 192.168.1.104
Host is up (0.00044s latency).
Not shown: 65511 closed ports
PORT STATE SERVICE VERSION
21/tcp open ftp vsftpd 3.0.2
|_ftp-anon: Anonymous FTP login allowed (FTP code 230)
| ftp-syst:
| STAT:
| FTP server status:
| Connected to 192.168.1.9
| Logged in as ftp
| TYPE: ASCII
| No session bandwidth limit
| Session timeout in seconds is 300
| Control connection is plain text
| Data connections will be plain text
| At session startup, client count was 1
| 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 02:df:b3:1b:01:dc:5e:fd:f9:96:d7:5b:b7:d6:7b:f9 (DSA)
| 2048 de:af:76:27:90:2a:8f:cf:0b:2f:22:f8:42:36:07:dd (RSA)
| 256 70:ae:36:6c:42:7d:ed:1b:c0:40:fc:2d:00:8d:87:11 (ECDSA)
|_ 256 bb:ce:f2:98:64:f7:8f:ae:f0:dd:3c:23:3b:a6:0f:61 (ED25519)
25/tcp open smtp Postfix smtpd
|_smtp-commands: typhoon, PIPELINING, SIZE 10240000, VRFY, ETRN, STARTTLS, ENHANCEDSTATUSCODES, 8BITMIME, DSN,
|_ssl-date: TLS randomness does not represent time
53/tcp open domain ISC BIND 9.9.5-3 (Ubuntu Linux)
| dns-nsid:
|_ bind.version: 9.9.5-3-Ubuntu
80/tcp open http Apache httpd 2.4.7 ((Ubuntu))
| http-robots.txt: 1 disallowed entry
|_/mongoadmin/
|_http-server-header: Apache/2.4.7 (Ubuntu)
|_http-title: Typhoon Vulnerable VM by PRISMA CSI
110/tcp open pop3?
111/tcp open rpcbind 2-4 (RPC #100000)
| rpcinfo:
| program version port/proto service
| 100000 2,3,4 111/tcp rpcbind
| 100000 2,3,4 111/udp rpcbind
| 100003 2,3,4 2049/tcp nfs
| 100003 2,3,4 2049/udp nfs
| 100005 1,2,3 39021/udp mountd
| 100005 1,2,3 42232/tcp mountd
| 100021 1,3,4 41167/tcp nlockmgr
| 100021 1,3,4 58813/udp nlockmgr
| 100024 1 40283/udp status
| 100024 1 51811/tcp status
| 100227 2,3 2049/tcp nfs_acl
|_ 100227 2,3 2049/udp nfs_acl
139/tcp open netbios-ssn Samba smbd 3.X - 4.X (workgroup: WORKGROUP)
143/tcp open imap Dovecot imapd
|_ssl-date: TLS randomness does not represent time
445/tcp open netbios-ssn Samba smbd 4.1.6-Ubuntu (workgroup: WORKGROUP)
631/tcp open ipp CUPS 1.7
| http-methods:
|_ Potentially risky methods: PUT
| http-robots.txt: 1 disallowed entry
|_/
|_http-server-header: CUPS/1.7 IPP/2.1
|_http-title: Home - CUPS 1.7.2
993/tcp open ssl/imaps?
995/tcp open ssl/pop3s?
2049/tcp open nfs_acl 2-3 (RPC #100227)
3306/tcp open mysql MySQL (unauthorized)
5432/tcp open postgresql PostgreSQL DB 9.3.3 - 9.3.5
|_ssl-date: TLS randomness does not represent time
6379/tcp open redis Redis key-value store 4.0.11
8080/tcp open http Apache Tomcat/Coyote JSP engine 1.1
| http-methods:
|_ Potentially risky methods: PUT DELETE
|_http-open-proxy: Proxy might be redirecting requests
|_http-server-header: Apache-Coyote/1.1
|_http-title: Apache Tomcat
27017/tcp open mongodb MongoDB 3.0.15
| mongodb-databases:
| databases
| 0
| empty = false
| sizeOnDisk = 83886080.0
| name = credentials
| 1
| empty = false
| sizeOnDisk = 83886080.0
| name = local
| totalSize = 167772160.0
|_ ok = 1.0
| mongodb-info:
| MongoDB Build info
| loaderFlags =
| version = 3.0.15
| allocator = tcmalloc
| debug = false
| bits = 64
| versionArray
| 2 = 15
| 3 = 0
| 0 = 3
| 1 = 0
| OpenSSLVersion = OpenSSL 1.0.1f 6 Jan 2014
| ok = 1.0
| compilerFlags = -Wnon-virtual-dtor -Woverloaded-virtual -std=c++11 -fno-omit-frame-pointer -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -pipe -Werror -O3 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fno-builtin-memcmp -std=c99
| maxBsonObjectSize = 16777216
| gitVersion = b8ff507269c382bc100fc52f75f48d54cd42ec3b
| javascriptEngine = V8
| sysInfo = Linux ip-10-71-195-23 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 BOOST_LIB_VERSION=1_49
| Server status
| ok = 1.0
| version = 3.0.15
| storageEngine
| name = mmapv1
| opcountersRepl
| insert = 0
| query = 0
| command = 0
| getmore = 0
| update = 0
| delete = 0
| backgroundFlushing
| last_finished = 1549068444952
| average_ms = 0.25
| flushes = 4
| last_ms = 0
| total_ms = 1
| host = typhoon.local
| globalLock
| currentQueue
| total = 0
| readers = 0
| writers = 0
| activeClients
| total = 9
| readers = 0
| writers = 0
| totalTime = -3318466000
| cursors
| totalNoTimeout = 0
| clientCursors_size = 0
| pinned = 0
| note = deprecated, use server status metrics
| timedOut = 0
| totalOpen = 0
| uptimeMillis = -3318447
| uptimeEstimate = 239.0
| process = mongod
| extra_info
| note = fields vary by platform
| page_faults = 8
| heap_usage_bytes = 63068072
| writeBacksQueued = false
| connections
| totalCreated = 2
| available = 51199
| current = 1
| locks
| Global
| acquireCount
| r = 1022
| w = 9
| W = 5
| Database
| acquireCount
| R = 2
| W = 9
| r = 502
| MMAPV1Journal
| acquireCount
| r = 502
| w = 22
| R = 55
| Collection
| acquireCount
| R = 522
| network
| bytesOut = 9897
| bytesIn = 65
| numRequests = 1
| pid = 1388
| mem
| supported = true
| resident = 69
| mappedWithJournal = 320
| bits = 64
| mapped = 160
| virtual = 514
| uptime = -3319.0
| opcounters
| insert = 0
| query = 1
| command = 2
| getmore = 0
| update = 0
| delete = 0
| localTime = 1549068484937
| metrics
| queryExecutor
| scannedObjects = 0
| scanned = 0
| cursor
| open
| pinned = 0
| total = 0
| noTimeout = 0
| timedOut = 0
| commands
| _recvChunkCommit
| failed = 0
| total = 0
| mapreduce
| shardedfinish
| failed = 0
| total = 0
| aggregate
| failed = 0
| total = 0
| serverStatus
| failed = 0
| total = 2
| touch
| failed = 0
| total = 0
| compact
| failed = 0
| total = 0
| features
| failed = 0
| total = 0
| createUser
| failed = 0
| total = 0
| hostInfo
| failed = 0
| total = 0
| buildInfo
| failed = 0
| total = 0
| dataSize
| failed = 0
| total = 0
| saslContinue
| failed = 0
| total = 0
| grantPrivilegesToRole
| failed = 0
| total = 0
| rolesInfo
| failed = 0
| total = 0
| replSetFreeze
| failed = 0
| total = 0
| repairDatabase
| failed = 0
| total = 0
| getShardVersion
| failed = 0
| total = 0
| dropIndexes
| failed = 0
| total = 0
| _recvChunkStart
| failed = 0
| total = 0
| diagLogging
| failed = 0
| total = 0
| distinct
| failed = 0
| total = 0
| planCacheClearFilters
| failed = 0
| total = 0
| shutdown
| failed = 0
| total = 0
| authSchemaUpgrade
| failed = 0
| total = 0
| createRole
| failed = 0
| total = 0
| dropRole
| failed = 0
| total = 0
| dropAllRolesFromDatabase
| failed = 0
| total = 0
| revokeRolesFromRole
| failed = 0
| total = 0
| replSetInitiate
| failed = 0
| total = 0
| geoNear
| failed = 0
| total = 0
| invalidateUserCache
| failed = 0
| total = 0
| replSetGetRBID
| failed = 0
| total = 0
| cleanupOrphaned
| failed = 0
| total = 0
| forceerror
| failed = 0
| total = 0
| planCacheSetFilter
| failed = 0
| total = 0
| updateUser
| failed = 0
| total = 0
| drop
| failed = 0
| total = 0
| resync
| failed = 0
| total = 0
| applyOps
| failed = 0
| total = 0
| filemd5
| failed = 0
| total = 0
| cloneCollectionAsCapped
| failed = 0
| total = 0
| _recvChunkStatus
| failed = 0
| total = 0
| checkShardingIndex
| failed = 0
| total = 0
| insert
| failed = 0
| total = 0
| dbStats
| failed = 0
| total = 0
| writebacklisten
| failed = 0
| total = 0
| dropAllUsersFromDatabase
| failed = 0
| total = 0
| medianKey
| failed = 0
| total = 0
| unsetSharding
| failed = 0
| total = 0
| listCommands
| failed = 0
| total = 0
| ping
| failed = 0
| total = 0
| collMod
| failed = 0
| total = 0
| copydb
| failed = 0
| total = 0
| collStats
| failed = 0
| total = 0
| isMaster
| failed = 0
| total = 0
| renameCollection
| failed = 0
| total = 0
| <UNKNOWN> = 0
| logRotate
| failed = 0
| total = 0
| eval
| failed = 0
| total = 0
| replSetFresh
| failed = 0
| total = 0
| logout
| failed = 0
| total = 0
| replSetHeartbeat
| failed = 0
| total = 0
| replSetStepDown
| failed = 0
| total = 0
| handshake
| failed = 0
| total = 0
| driverOIDTest
| failed = 0
| total = 0
| dropDatabase
| failed = 0
| total = 0
| getPrevError
| failed = 0
| total = 0
| listIndexes
| failed = 0
| total = 0
| connPoolStats
| failed = 0
| total = 0
| getCmdLineOpts
| failed = 0
| total = 0
| clone
| failed = 0
| total = 0
| replSetSyncFrom
| failed = 0
| total = 0
| getnonce
| failed = 0
| total = 0
| parallelCollectionScan
| failed = 0
| total = 0
| authenticate
| failed = 0
| total = 0
| dropUser
| failed = 0
| total = 0
| find
| failed = 0
| total = 0
| connPoolSync
| failed = 0
| total = 0
| getParameter
| failed = 0
| total = 0
| getShardMap
| failed = 0
| total = 0
| fsync
| failed = 0
| total = 0
| availableQueryOptions
| failed = 0
| total = 0
| whatsmyuri
| failed = 0
| total = 0
| validate
| failed = 0
| total = 0
| usersInfo
| failed = 0
| total = 0
| updateRole
| failed = 0
| total = 0
| _isSelf
| failed = 0
| total = 0
| update
| failed = 0
| total = 0
| getLastError
| failed = 0
| total = 0
| create
| failed = 0
| total = 0
| top
| failed = 0
| total = 0
| findAndModify
| failed = 0
| total = 0
| replSetElect
| failed = 0
| total = 0
| dbHash
| failed = 0
| total = 0
| splitVector
| failed = 0
| total = 0
| splitChunk
| failed = 0
| total = 0
| listCollections
| failed = 0
| total = 0
| mergeChunks
| failed = 0
| total = 0
| shardingState
| failed = 0
| total = 0
| shardConnPoolStats
| failed = 0
| total = 0
| setShardVersion
| failed = 0
| total = 0
| explain
| failed = 0
| total = 0
| replSetUpdatePosition
| failed = 0
| total = 0
| setParameter
| failed = 0
| total = 0
| createIndexes
| failed = 0
| total = 0
| geoSearch
| failed = 0
| total = 0
| _transferMods
| failed = 0
| total = 0
| saslStart
| failed = 0
| total = 0
| _migrateClone
| failed = 0
| total = 0
| revokeRolesFromUser
| failed = 0
| total = 0
| revokePrivilegesFromRole
| failed = 0
| total = 0
| copydbsaslstart
| failed = 0
| total = 0
| convertToCapped
| failed = 0
| total = 0
| copydbgetnonce
| failed = 0
| total = 0
| resetError
| failed = 0
| total = 0
| listDatabases
| failed = 0
| total = 0
| grantRolesToUser
| failed = 0
| total = 0
| _mergeAuthzCollections
| failed = 0
| total = 0
| moveChunk
| failed = 0
| total = 0
| currentOpCtx
| failed = 0
| total = 0
| repairCursor
| failed = 0
| total = 0
| replSetMaintenance
| failed = 0
| total = 0
| profile
| failed = 0
| total = 0
| appendOplogNote
| failed = 0
| total = 0
| replSetGetStatus
| failed = 0
| total = 0
| replSetReconfig
| failed = 0
| total = 0
| connectionStatus
| failed = 0
| total = 0
| count
| failed = 0
| total = 0
| reIndex
| failed = 0
| total = 0
| planCacheClear
| failed = 0
| total = 0
| planCacheListQueryShapes
| failed = 0
| total = 0
| planCacheListPlans
| failed = 0
| total = 0
| _getUserCacheGeneration
| failed = 0
| total = 0
| planCacheListFilters
| failed = 0
| total = 0
| mapReduce
| failed = 0
| total = 0
| group
| failed = 0
| total = 0
| grantRolesToRole
| failed = 0
| total = 0
| cloneCollection
| failed = 0
| total = 0
| getLog
| failed = 0
| total = 0
| delete
| failed = 0
| total = 0
| replSetGetConfig
| failed = 0
| total = 0
| cursorInfo
| failed = 0
| total = 0
| _recvChunkAbort
| failed = 0
| total = 0
| record
| moves = 0
| getLastError
| wtimeouts = 0
| wtime
| totalMillis = 0
| num = 0
| document
| inserted = 0
| updated = 0
| returned = 0
| deleted = 0
| storage
| freelist
| search
| scanned = 0
| bucketExhausted = 0
| requests = 0
| ttl
| deletedDocuments = 0
| passes = 4
| repl
| preload
| docs
| totalMillis = 0
| num = 0
| indexes
| totalMillis = 0
| num = 0
| apply
| batches
| totalMillis = 0
| num = 0
| ops = 0
| buffer
| count = 0
| sizeBytes = 0
| maxSizeBytes = 268435456
| network
| getmores
| totalMillis = 0
| num = 0
| readersCreated = 0
| bytes = 0
| ops = 0
| operation
| idhack = 0
| writeConflicts = 0
| scanAndOrder = 0
| fastmod = 0
| dur
| journaledMB = 0.008192
| timeMs
| commitsInWriteLock = 0
| writeToJournal = 1
| writeToDataFiles = 0
| commits = 0
| prepLogBuffer = 0
| remapPrivateView = 0
| dt = 3015
| commits = 29
| earlyCommits = 0
| commitsInWriteLock = 0
| writeToDataFilesMB = 0.001296
| compression = 5.7812279463656
| asserts
| user = 0
| rollovers = 0
| regular = 0
| warning = 0
|_ msg = 0
39542/tcp open mountd 1-3 (RPC #100005)
39845/tcp open mountd 1-3 (RPC #100005)
41167/tcp open nlockmgr 1-4 (RPC #100021)
42232/tcp open mountd 1-3 (RPC #100005)
51811/tcp open status 1 (RPC #100024)
MAC Address: 08:00:27:34:BF:F6 (Oracle VirtualBox virtual NIC)
Service Info: Hosts: typhoon, TYPHOON; OSs: Unix, Linux; CPE: cpe:/o:linux:linux_kernel
Host script results:
|_clock-skew: mean: -40m00s, deviation: 1h09m16s, median: -1s
|_nbstat: NetBIOS name: TYPHOON, NetBIOS user: <unknown>, NetBIOS MAC: <unknown> (unknown)
| smb-os-discovery:
| OS: Unix (Samba 4.1.6-Ubuntu)
| Computer name: typhoon
| NetBIOS computer name: TYPHOON\x00
| Domain name: local
| FQDN: typhoon.local
|_ System time: 2019-02-02T02:48:03+02:00
| smb-security-mode:
| account_used: guest
| authentication_level: user
| challenge_response: supported
|_ message_signing: disabled (dangerous, but default)
| smb2-security-mode:
| 2.02:
|_ Message signing enabled but not required
| smb2-time:
| date: 2019-02-02 01:48:03
|_ start_date: N/A
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 305.04 seconds
root@Security-Audit-01:~#
==============================================================================================================
oot@Security-Audit-01:~# ftp 192.168.1.104
Connected to 192.168.1.104.
220 (vsFTPd 3.0.2)
Name (192.168.1.104:root): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
226 Directory send OK.
ftp> help
Commands may be abbreviated. Commands are:
! dir mdelete qc site
$ disconnect mdir sendport size
account exit mget put status
append form mkdir pwd struct
ascii get mls quit system
bell glob mode quote sunique
binary hash modtime recv tenex
bye help mput reget tick
case idle newer rstatus trace
cd image nmap rhelp type
cdup ipany nlist rename user
chmod ipv4 ntrans reset umask
close ipv6 open restart verbose
cr lcd prompt rmdir ?
delete ls passive runique
debug macdef proxy send
ftp> pwd
257 "/"
ftp> ls -al
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
drwxr-xr-x 2 0 129 4096 Oct 23 00:05 .
drwxr-xr-x 2 0 129 4096 Oct 23 00:05 ..
226 Directory send OK.
ftp>
==========================================================================================================
root@Security-Audit-01:~# enum4linux 192.168.1.104
Starting enum4linux v0.8.9 ( http://labs.portcullis.co.uk/application/enum4linux/ ) on Sat Feb 2 02:00:47 2019
==========================
| Target Information |
==========================
Target ........... 192.168.1.104
RID Range ........ 500-550,1000-1050
Username ......... ''
Password ......... ''
Known Usernames .. administrator, guest, krbtgt, domain admins, root, bin, none
=====================================================
| Enumerating Workgroup/Domain on 192.168.1.104 |
=====================================================
[+] Got domain/workgroup name: WORKGROUP
=============================================
| Nbtstat Information for 192.168.1.104 |
=============================================
Looking up status of 192.168.1.104
TYPHOON <00> - B <ACTIVE> Workstation Service
TYPHOON <03> - B <ACTIVE> Messenger Service
TYPHOON <20> - B <ACTIVE> File Server Service
WORKGROUP <00> - <GROUP> B <ACTIVE> Domain/Workgroup Name
WORKGROUP <1e> - <GROUP> B <ACTIVE> Browser Service Elections
MAC Address = 00-00-00-00-00-00
======================================
| Session Check on 192.168.1.104 |
======================================
[+] Server 192.168.1.104 allows sessions using username '', password ''
============================================
| Getting domain SID for 192.168.1.104 |
============================================
Domain Name: WORKGROUP
Domain Sid: (NULL SID)
[+] Can't determine if host is part of domain or part of a workgroup
=======================================
| OS information on 192.168.1.104 |
=======================================
Use of uninitialized value $os_info in concatenation (.) or string at ./enum4linux.pl line 464.
[+] Got OS info for 192.168.1.104 from smbclient:
[+] Got OS info for 192.168.1.104 from srvinfo:
TYPHOON Wk Sv PrQ Unx NT SNT Samba 4.1.6-Ubuntu
platform_id : 500
os version : 4.9
server type : 0x809a03
==============================
| Users on 192.168.1.104 |
==============================
index: 0x1 RID: 0x3e8 acb: 0x00000010 Account: typhoon Name: typhoon Desc:
index: 0x2 RID: 0x3e9 acb: 0x00000010 Account: admin Name: Desc:
user:[typhoon] rid:[0x3e8]
user:[admin] rid:[0x3e9]
==========================================
| Share Enumeration on 192.168.1.104 |
==========================================
WARNING: The "syslog" option is deprecated
Sharename Type Comment
--------- ---- -------
IPC$ IPC IPC Service (Samba 4.1.6-Ubuntu)
typhoon Disk typhoon
print$ Disk Printer Drivers
Reconnecting with SMB1 for workgroup listing.
Server Comment
--------- -------
Workgroup Master
--------- -------
WORKGROUP
[+] Attempting to map shares on 192.168.1.104
//192.168.1.104/IPC$ [E] Can't understand response:
WARNING: The "syslog" option is deprecated
NT_STATUS_OBJECT_NAME_NOT_FOUND listing \*
//192.168.1.104/typhoon Mapping: OK, Listing: OK
//192.168.1.104/print$ Mapping: DENIED, Listing: N/A
=====================================================
| Password Policy Information for 192.168.1.104 |
=====================================================
[+] Attaching to 192.168.1.104 using a NULL share
[+] Trying protocol 445/SMB...
[+] Found domain(s):
[+] TYPHOON
[+] Builtin
[+] Password Info for Domain: TYPHOON
[+] Minimum password length: 5
[+] Password history length: None