Skip to content
New issue

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

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

Already on GitHub? # to your account

Modified File Close Routine #120

Merged
merged 1 commit into from
Jun 13, 2021
Merged

Conversation

calebstewart
Copy link
Owner

The old logic for exiting the process when writing to a file was flawed. I also increased the block size for dd to ensure it reads data as quickly as possible while we upload.

This should fix #117. @3m0W33D if you could give this branch a try and let me know. It worked for me (on Wekor) as seen in the below screenshot. Thanks for reporting!

image

The old logic for exiting the process when writing to a file was flawed.
I also increased the block size for `dd` to ensure it reads data as
quickly as possible while we upload.
@calebstewart calebstewart added the linux Issues relating specifically to the Linux platform label Jun 12, 2021
@3m0W33D
Copy link

3m0W33D commented Jun 13, 2021

Hi I tested on my end, this is working as intended. Was successfully able to upload without any issues! Thanks for all the hard work!

(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
[04:28:44] uploaded 334.83KiB in 2.24 seconds                                                                                                                                                                                    upload.py:88
(local) pwncat$                                                                                                                                                                                                                              
(remote) www-data@osboxes:/tmp$ ls
f           systemd-private-a7731b7174fa413f83fabf3507115aba-colord.service-aurFGH        systemd-private-a7731b7174fa413f83fabf3507115aba-systemd-timesyncd.service-0lpPuV
linpeas.sh  systemd-private-a7731b7174fa413f83fabf3507115aba-rtkit-daemon.service-uUufXy
(remote) www-data@osboxes:/tmp$ 

@calebstewart calebstewart merged commit 473bda6 into master Jun 13, 2021
@calebstewart calebstewart deleted the issue-117-linpeas-upload branch June 13, 2021 23:21
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
linux Issues relating specifically to the Linux platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Running scripts immediately after uploading to target system (linux)
2 participants