brightio / penelope

Penelope Shell Handler
GNU General Public License v3.0
703 stars 93 forks source link

Error with 'run upload_privesc_scripts' module #19

Closed DerekFost closed 2 months ago

DerekFost commented 9 months ago

First let me gush a little on how much I love this program!

I use it all the time and recommend it on my OSCP challenge walkthroughs at https://medium.com/@Dpsypher.

I encountered an error using the 'run upload_privesc_scripts' module:

Exception in thread Menu: Traceback (most recent call last): File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner self.run() File "/usr/lib/python3.11/threading.py", line 982, in run self._target(*self._args, **self._kwargs) File "/usr/lib/python3.11/cmd.py", line 138, in cmdloop stop = self.onecmd(line) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/cmd.py", line 217, in onecmd return func(arg) ^^^^^^^^^ File "/home/kali/offsec-labs/TEMP-publish/./penelope.py", line 172, in newfunc return func(self, ID) ^^^^^^^^^^^^^^ File "/home/kali/offsec-labs/TEMP-publish/./penelope.py", line 393, in do_upload core.sessions[self.sid].upload(glob, randomize_fname=True) File "/home/kali/offsec-labs/TEMP-publish/./penelope.py", line 2234, in upload destination = remote_path if remote_path else self.cwd ^^^^^^^^ File "/home/kali/offsec-labs/TEMP-publish/./penelope.py", line 1408, in cwd self._cwd = self.control_session.exec(cmd, value=True) ^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'exec'

I could not be more thrilled that you chose lse.sh as well as linpeas as your scripts. They are also my go to.

I just want to thank you for the ongoing effort you put in to make this a spectacular lightweight C2. Please let me know if I can help.

Respectfully, Derek Foster

P.S. It may be related to using a python reverse shell to connect with Penelope. I get an error on connection but after pressing enter the shell seems to behave normally. image

brightio commented 2 months ago

Thank you very much @DerekFost for your kind words! I know who you are, I am following you on Medium :) Keep up the good work!

I have located where the bug is and I am working on a fix. Stay tuned!

DerekFost commented 2 months ago

I'm flattered that you have read my walkthroughs!

Thank you for looking into this and best wishes to you :D

Respectfully, Derek Foster

On Sun, Sep 1, 2024 at 7:41 AM brightio @.***> wrote:

Thank you very much @DerekFost https://github.com/DerekFost for your kind words! I know who you are, I am following you on Medium :) Keep up the good work!

I have located where the bug is and I am working on a fix. Stay tuned!

— Reply to this email directly, view it on GitHub https://github.com/brightio/penelope/issues/19#issuecomment-2323371655, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWSTRUIXBTXYWEZLUFM76JDZUMRS5AVCNFSM6AAAAABD2SMIFWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRTGM3TCNRVGU . You are receiving this because you were mentioned.Message ID: @.***>

brightio commented 2 months ago

@DerekFost, this should be fixed now. Could you please try the same scenario again, and if it is not fixed, you can re-open the issue? Thanks a million for reporting this!

DerekFost commented 2 months ago

Nice Work!

Respectfully, Derek Foster 'Dpsypher'

On Thu, Sep 5, 2024 at 12:39 AM brightio @.***> wrote:

Closed #19 https://github.com/brightio/penelope/issues/19 as completed.

— Reply to this email directly, view it on GitHub https://github.com/brightio/penelope/issues/19#event-14142142210, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWSTRUPJKZVBSTAZ4GCQNKDZVADDVAVCNFSM6AAAAABD2SMIFWVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJUGE2DEMJUGIZDCMA . You are receiving this because you were mentioned.Message ID: @.***>