UnderTheWire Cyborg Guide

here's how to solve the Cyborg level 3 → 4

Back to the Cyborg Guides

Previous Level Guide: Cyborg Level 2 → 3


Access

SSH: ssh cyborg3@cyborg.underthewire.tech -p 22

Password: 172.31.45.167_ipv4

Info

The password for cyborg4 is the number of users in the Cyborg group within Active Directory PLUS the name of the file on the desktop.

NOTE:
– If the number of users is “20” and the file on the desktop is called “_users”, then the password is “20_users”.
– The password will be lowercase no matter how it appears on the screen.

▼ HINT:
https://technet.microsoft.com/en-us/library/ee617195.aspx

Theory

To get the password, we'll probably need a couple commands to first find where the group of users is and then see the users or count all of them or something. So first obviously, dir to know the name of the file for the second part of the password. Then a command to search for the cyborg group in the active directory domain stuff, so filtering for a group that's like the name cyborg yeah I guess. Finally getting the members because if I remember correctly that group search only gives you info about the group, but hoping that between that info of the group is also the number of users because the group members command actually lists every single user, so we'll have to count that if we don't get it in the search, but we'll see later. Here the commands:

dir
Get-ADGroup -Filter 'Name -like "Cyborg"'
Get-ADGroupMember

Solution

Firstly we'll use the dir command now that we are inside the shell:

PS C:\users\cyborg3\desktop> dir


    Directory: C:\users\cyborg3\desktop


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a----        2/26/2022   2:14 PM              0 _objects

Now let's get the info of the group and hopefully get how many users there are:

PS C:\users\cyborg3\desktop> Get-ADGroup -Filter 'Name -like "Cyborg"'


DistinguishedName : CN=cyborg,OU=Groups,DC=underthewire,DC=tech
GroupCategory     : Distribution
GroupScope        : Global
Name              : cyborg
ObjectClass       : group
ObjectGUID        : e9511d2f-b09b-40ef-a5b2-180e162ee4a7
SamAccountName    : cyborg
SID               : S-1-5-21-758131494-606461608-3556270690-2180

Ok, I think we can just use the group members command, although that will display the information of however many users there are in the group, which will fill up the shell with so much information, so we can just wrap it all up in a count property command to well, count all the users in here instead. And I'm so glad we put that there because there's 88 users:

PS C:\users\cyborg3\desktop> (Get-ADGroup -Filter 'Name -like "Cyborg"' | Get-ADGroupMember).Count
88

There we go! Now we can join the amount of this with the file name from before, and we get this:

88_objects

And that's the password! Now we should be good to go to the next level.

https://underthewire.tech/cyborg-3
Next Level Guide: Cyborg Level 4 → Level 5