Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Simple script that starts a service at router level
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Raz0rEdge" data-source="post: 1795552" data-attributes="member: 110816"><p>Miller_, that AppleScript would work and Expect would work essentially the same. However, as you've found out, both of them suffer the problem of your password being in clear text. The other thing you can do is setup SSH keys (assuming your router supports that). You can generate DSA or RSA keys and then save the public key on the router and keep the private key locally and then when you SSH, you will not be required for a password at all.</p><p></p><p>The assumption here is that the account you are logging into so that you can run the script is where you would authenticate and keep that secure.</p><p></p><p>The second option you have is to compile your AppleScript into an application. Choose File->Export and then for File Format, choose Application. This should now give you an compiled application that will "hide" your plain text password (confirm that by looking into the .app folder that is your application and using 'grep' for your password). You can now zip your script up behind a password or something to keep it safe.</p></blockquote><p></p>
[QUOTE="Raz0rEdge, post: 1795552, member: 110816"] Miller_, that AppleScript would work and Expect would work essentially the same. However, as you've found out, both of them suffer the problem of your password being in clear text. The other thing you can do is setup SSH keys (assuming your router supports that). You can generate DSA or RSA keys and then save the public key on the router and keep the private key locally and then when you SSH, you will not be required for a password at all. The assumption here is that the account you are logging into so that you can run the script is where you would authenticate and keep that secure. The second option you have is to compile your AppleScript into an application. Choose File->Export and then for File Format, choose Application. This should now give you an compiled application that will "hide" your plain text password (confirm that by looking into the .app folder that is your application and using 'grep' for your password). You can now zip your script up behind a password or something to keep it safe. [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Simple script that starts a service at router level
Top