VIsual Discussion
by cavour13 - Saturday September 30, 2023 at 06:15 PM
#11
This rev shell worked for me (https://github.com/martinsohn/PowerShell-reverse-shell), and I was able to get the userl flag, but the shell is too slow and unstable, that I can't even enumerate the system properly.
Can somebody plz recommend a better payload for this box? (already tried msfvenom for powershell - didn't work)
Reply
#12
(Oct 04, 2023, 11:53 AM)robillard Wrote: How did you get the shell? Including a malicious .sln file that includes the shell code??
Thanks  Big Grin

GitHub - Miranda-Bai/C_plus: Used for HTB Visual machine practice.
Reply
#13
(Oct 04, 2023, 02:31 PM)robillard Wrote: Thanks a lot, but unfortunately, I keep getting the "the repository does not  contain a .snl file" error...

Faced same problem. Get gitea. Install it properly. And create a repo... You'll get revshell in no time.

(Oct 02, 2023, 04:40 AM)4ip0k Wrote:
(Oct 02, 2023, 04:17 AM)hooneyman Wrote: Could u give me a nudge for root part?.. im confused jeje

As coolhunter123 already wrote:
1) User have privilege to write in the webapp directory;
2) Create a `php reverse shell` beside the index.html, get a shell with user NT local service;
3) Use `FullPowers` tool to expand ur privileges and SeImpersonate system using flag -c to get another reverse shell;
4) Use `GodPotato` tool to PE to NT AUTHORITY\SYSTEM.

It works like a charm when you get the reverse shell. Just stay cool.

Can anybody tell me what are the vuln and why it works though. Please PM me. Love to know the tidbits.
Reply
#14
facing problem in gitea setup.. help plz
Reply
#15
i can upload my repository but i cant get my shell Sad
can someone help me ?
Reply
#16
hi everyone,
what i am doing wrong?

shoud i paste http://myip:8000/repo into submit or http://myip:8000/repo.git ?

i got an error The repository doesn’t contain a .sln file or the URL submitted is invalid.
Reply
#17
does anybody have writeup for this machine ???
Reply
#18
You can either create the repo in github or run gitea or if you are in your local machine serve the .git folder since the box is searching for git repo not your code.
The .git folder acts as git repo.

(Oct 01, 2023, 07:29 PM)peRd1 Wrote:
(Oct 01, 2023, 06:01 PM)lightweightbaby Wrote:
(Oct 01, 2023, 04:33 PM)peRd1 Wrote: Gitea server is one of the ways to go. The easier and quicker solution is just running python server with the http module.

You just need to create your git folder appropriately, have your entire source code files inside (including .sln file!!!), and watch how your files are pulled out by server. If that's fine, then your good to go.

Then just check the logs when the server builds your project. If there are no errors and still nothing happens, your code is bad. Otherwise, it should work and do your thing (revshell hitting back home?).

Can you tell me please about it more details. I donn't understand how i should make the repo, should i create repo already with a shell or i can use random repo and then when i upload it on server i can somehow upload a shell ?
Create a new C# web console dot6.0 project. Any hello world project is fine. Look into prebuild events

Add there your revshell. Copy WHOLE project to your folder. Initialize and setup git folders appropriately, such as: 

git init
git add  .
git commit -m 'project_name'
cd .git
git --bare update-server-info
launch your python webserver with python -m http.server 80

or do the same with gitea.

Also dont forget each time you mess with source files, rerun the git commit command so it refreshes the repo.

Do we need `git --bare update-server-info`, I dont know. But all others above are required.

All the necessary details about exploiting the systems are listed here.
Reply
#19
(Oct 05, 2023, 02:08 PM)notforothers Wrote: You can either create the repo in github or run gitea or if you are in your local machine serve the .git folder since the box is searching for git repo not your code.
The .git folder acts as git repo.

(Oct 01, 2023, 07:29 PM)peRd1 Wrote:
(Oct 01, 2023, 06:01 PM)lightweightbaby Wrote:
(Oct 01, 2023, 04:33 PM)peRd1 Wrote: Gitea server is one of the ways to go. The easier and quicker solution is just running python server with the http module.

You just need to create your git folder appropriately, have your entire source code files inside (including .sln file!!!), and watch how your files are pulled out by server. If that's fine, then your good to go.

Then just check the logs when the server builds your project. If there are no errors and still nothing happens, your code is bad. Otherwise, it should work and do your thing (revshell hitting back home?).

Can you tell me please about it more details. I donn't understand how i should make the repo, should i create repo already with a shell or i can use random repo and then when i upload it on server i can somehow upload a shell ?
Create a new C# web console dot6.0 project. Any hello world project is fine. Look into prebuild events

Add there your revshell. Copy WHOLE project to your folder. Initialize and setup git folders appropriately, such as: 

git init
git add  .
git commit -m 'project_name'
cd .git
git --bare update-server-info
launch your python webserver with python -m http.server 80

or do the same with gitea.

Also dont forget each time you mess with source files, rerun the git commit command so it refreshes the repo.

Do we need `git --bare update-server-info`, I dont know. But all others above are required.

All the necessary details about exploiting the systems are listed here.

Yaa but it shows that .sln file does not exists (that's the problem)
Reply
#20
(Oct 05, 2023, 01:39 PM)haemanth Wrote: does anybody have writeup for this machine ???

yes google
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 375 93,471 2 minutes ago
Last Post: Johe
  [FREE] HackTheBox Dante - complete writeup written by Tamarisk Tamarisk 604 92,577 4 minutes ago
Last Post: Johe
  [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags Techtom 27 2,803 8 minutes ago
Last Post: Johe
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 87 7,978 1 hour ago
Last Post: char0n1507
Heart [FREE] HackTheBox All Cheatsheets Tamarisk 9 565 1 hour ago
Last Post: char0n1507

Forum Jump:


 Users browsing this forum: 1 Guest(s)