VIsual Discussion
by cavour13 - Saturday September 30, 2023 at 06:15 PM
#1
Waiting for it a lot guys! i love bloodhound Angel
Reply
#2
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?).
Reply
#3
(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.
Reply
#4
Could u give me a nudge for root part?.. im confused jeje
Reply
#5
(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.
Reply
#6
thanks 
(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.
Reply
#7
How do you use prebuild events revshell? No matter what i use in <PreBuildEvent>cmd</PreBuildEvent> nothing happens, it just builds successfully without errors or response on my listening port
Reply
#8
(Oct 02, 2023, 02:26 PM)livicac188 Wrote: How do you use prebuild events revshell? No matter what i use in <PreBuildEvent>cmd</PreBuildEvent> nothing happens, it just builds successfully without errors or response on my listening port

make sure you commit changes and update it with git --bare update-server-info (inside of .git folder)
Reply
#9
Can somebody give a hint for a payload for reverse shell, already got the idea about Pre-build event, but all my reverse shell payloads don't work: I tried call rev_shell.bat (as docs says) and .exe and a couple of powershell one-liners, but whithout success Sad
Would appriciate any help!Smile
Reply
#10
(Oct 02, 2023, 04:59 PM)pavka Wrote: Can somebody give a hint for a payload for reverse shell, already got the idea about Pre-build event, but all my reverse shell payloads don't work: I tried call rev_shell.bat (as docs says) and .exe and a couple of powershell one-liners, but whithout success Sad
Would appriciate any help!Smile

try to pull the script from your machine and pipe it over to powershell
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags Techtom 21 2,540 5 minutes ago
Last Post: popoler
  [FREE] CPTS 12 FLAGS pulsebreaker 66 1,795 7 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
Heart [FREE] HackTheBox All Cheatsheets Tamarisk 3 417 Apr 29, 2026, 10:36 PM
Last Post: op334

Forum Jump:


 Users browsing this forum: 1 Guest(s)