HTB Caption - Linux - Hard
by mhsoraa - Saturday September 14, 2024 at 06:31 PM
#21
For root: check the second git repo

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
#22
for USER - i can get code execution but my reverse shells seems not to be working

This forum account is currently banned. Ban Length: Permanent (N/A Remaining)
Ban Reason: Leeching.
Reply
#23
(Sep 14, 2024, 09:52 PM)local Wrote: for USER - i can get code execution but my reverse shells seems not to be working

Why do you need a shell when you can just cat the ssh private key? Smile

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
#24
(Sep 14, 2024, 09:55 PM)osamy7593 Wrote:
(Sep 14, 2024, 09:54 PM)nomx1337 Wrote:
(Sep 14, 2024, 09:52 PM)local Wrote: for USER - i can get code execution but my reverse shells seems not to be working

Why do you need a shell when you can just cat the ssh private key? Smile

where did u find it ? /home/margo/.ssh/id_rsa ??

ls -la /home/margo/.ssh/

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
#25
(Sep 14, 2024, 09:54 PM)nomx1337 Wrote:
(Sep 14, 2024, 09:52 PM)local Wrote: for USER - i can get code execution but my reverse shells seems not to be working

Why do you need a shell when you can just cat the ssh private key? Smile

└─$ ssh -i id_rsa margo@10.129.20.140
Load key "id_rsa": error in libcrypto

This forum account is currently banned. Ban Length: Permanent (N/A Remaining)
Ban Reason: Leeching.
Reply
#26
any hints for root?
Reply
#27
(Sep 14, 2024, 10:00 PM)local Wrote:
(Sep 14, 2024, 09:54 PM)nomx1337 Wrote:
(Sep 14, 2024, 09:52 PM)local Wrote: for USER - i can get code execution but my reverse shells seems not to be working

Why do you need a shell when you can just cat the ssh private key? Smile

└─$ ssh -i id_rsa margo@10.129.20.140
Load key "id_rsa": error in libcrypto


help me to get initial shell because  h2-rce failed to access. may be there is a way to get it , i am in caption.htb:8080 dashboard
Reply
#28
server.go is running on port 9090 as root, so i think we need to use:

logs := fmt.Sprintf("echo 'IP Address: %s, User-Agent: %s, Timestamp: %s' >> output.log", ip, userAgent, timestamp)
exec.Command{"/bin/sh", "-c", logs}
from that server code
Reply
#29
(Sep 14, 2024, 10:12 PM)carbanak0 Wrote:
(Sep 14, 2024, 10:00 PM)local Wrote:
(Sep 14, 2024, 09:54 PM)nomx1337 Wrote:
(Sep 14, 2024, 09:52 PM)local Wrote: for USER - i can get code execution but my reverse shells seems not to be working

Why do you need a shell when you can just cat the ssh private key? Smile

└─$ ssh -i id_rsa margo@10.129.20.140
Load key "id_rsa": error in libcrypto


help me to get initial shell because  h2-rce failed to access. may be there is a way to get it , i am in caption.htb:8080 dashboard

https://medium.com/r3d-buck3t/chaining-h...535a9621a2

This forum account is currently banned. Ban Length: Permanent (N/A Remaining)
Ban Reason: Leeching.
Reply
#30
for the slow guy can someone help with the command that cats the ssh key

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
  [FREE] CPTS 12 FLAGS pulsebreaker 66 1,793 6 hours ago
Last Post: vlka
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 370 92,597 Yesterday, 05:05 PM
Last Post: lifolifo007
  Hack the box Pro Labs, VIP, VIP+ 1 month free Method RedBlock 23 2,218 Yesterday, 02:10 PM
Last Post: kkkato
  [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags Techtom 20 2,529 Apr 29, 2026, 11:06 PM
Last Post: op334
Heart [FREE] HackTheBox All Cheatsheets Tamarisk 3 417 Apr 29, 2026, 10:36 PM
Last Post: op334

Forum Jump:


 Users browsing this forum: 3 Guest(s)