Jump to content

Recommended Posts

Posted

Dear all

I'm a newbie with BashBunny trying to figure out how to import a script that works flawless on RubberDucky.

(I'm on a Mac Sierra)

Most of commands are running ok, but after the "history -c"

....

Q STRING "history -c"
Q ENTER
Q DELAY 1000
Q STRING "kill -9 $$"
Q ENTER
Q DELAY 1000
Q COMMAND Q
Q DELAY 1000
LED G

.... I get:

neto:Desktop neto$ history -c

neto:Desktop neto$ kill -9 350

-bash: kill: (350) - Operation not permitted

neto:Desktop neto$ 

And then an annoying Logout window.

On RubberDucky, after the history -c command it works perfectly and close terminal.

What I'm doing wrong??

 

Thanks

 

 

 

Posted

This was the best I could come up with

 

Q STRING history -c
Q ENTER
Q DELAY 1000
rem Q STRING kill -9 '$$'
rem Q ENTER
rem Q DELAY 1000
Q STRING kill -9 '$(ps -p $PPID -o ppid=)'
Q ENTER
Q DELAY 1000
LED G

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...