Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Running scripts immediately after uploading to target system (linux) #117

Closed
3m0W33D opened this issue Jun 10, 2021 · 1 comment · Fixed by #120
Closed

[BUG] Running scripts immediately after uploading to target system (linux) #117

3m0W33D opened this issue Jun 10, 2021 · 1 comment · Fixed by #120
Assignees
Labels
bug Something isn't working linux Issues relating specifically to the Linux platform

Comments

@3m0W33D
Copy link

3m0W33D commented Jun 10, 2021

Describe the bug
I am uploading linpeas.sh to the target system via upload. After successfully uploading, Ctrl+D does not give me my shell but instead hangs or shows the output of linpeas.sh

Describe the target system
This https://tryhackme.com/room/wekorra room. Linux system presumably Ubuntu.

To Reproduce
Steps to reproduce the behavior:

  1. Getting a reverse shell
  2. Upload linpeas to remote machine upload /home/kali/tools/peas/linPEAS/linpeas.sh
  3. Upload is successful
  4. Ctrl+D either hangs or starts running linpeas.sh immediately
  5. After disconnecting and reconnecting linpeas does not show up in the uploaded directory

Expected behavior
Linpeas.sh should have been upload to the current directory.

(remote) www-data@osboxes:/tmp$ 
(local) pwncat$ upload /home/kali/tools/peas/linPEAS/linpeas.sh
./linpeas.sh ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 342.9/342.9 KB • ? • 0:00:00
[05:34:44] uploaded 334.83KiB in 1.39 seconds                                                                                                                                                                                     upload.py:87
(local) pwncat$
@3m0W33D 3m0W33D added the bug Something isn't working label Jun 10, 2021
@3m0W33D 3m0W33D changed the title [BUG] Running scripts immediately as I upload linux [BUG] Running scripts immediately after uploading to target system (linux) Jun 10, 2021
@calebstewart
Copy link
Owner

I can confirm something weird is going on. I'm looking into it. When I try, it uploads part of the file, and then hangs (on the same TryHackMe machine). I'll let you know when I find the culprit. Sorry it didn't work for you! :(

@calebstewart calebstewart self-assigned this Jun 12, 2021
@calebstewart calebstewart added the linux Issues relating specifically to the Linux platform label Jun 12, 2021
@calebstewart calebstewart added this to the Release v0.4.1 milestone Jun 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working linux Issues relating specifically to the Linux platform
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants