These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
123Next pageLast page
 

Eve Auto Login

First post First post
Author
Michael Bone
Viper-Squad
Pandemic Horde
#1 - 2015-02-11 14:45:34 UTC  |  Edited by: Michael Bone
This is a powershell script that will automatically log in your EVE account.
Save this file somewhere. I put mine in the actual EVE folder, but you can drop it anywhere.

If you right click & run it, it will create a default sign in profile. You can make shortcuts on your desktop that sign into different accounts all using the same script by putting the following into the shortcut target box:
PowerShell.exe -NoProfile -ExecutionPolicy Bypass -Command "& 'C:\path\to\eve_autologin_RC1.ps1'" ProfileBlah

Just replace the path with the path to where you put the script, and the ProfileBlah to whatever you want that profile named. I use each account's name, personally.

The script stores your username, password and all related settings in the script's directory in a file called eli.ini . If it can't write to that directory, it puts it in %LocalAppData%\CCP\EVE\eli.ini instead.

Download (RC1)
*Many fixes & improvements

Download (RC2) (Added client build check and update code)

Credentials are stored encrypted as a powershell secure string meaning they can't be decrypted except on the computer and only the user profile that created them. As for maliciousness...just read the damn code. No accusations, please.

PLEASE post back any problems. If you get errors, make sure you have signed into EVE from the IP address you are at before. This script doesn't handle the character name challenge (yet).
Frostys Virpio
State War Academy
Caldari State
#2 - 2015-02-11 14:54:03 UTC
Michael Bone wrote:
Last time I had an active sub, I thought to myself "Wow! Wouldn't it be great if I could just hit a button and log in? No Muss, no fuss?" Of course the eve launcher is nice. but you have to re-authenticate every 12 hours iirc.

Well, after about fourteen hours dissecting the authentication communications over https out of the lawnchair, I've come up with a beta. This will automagically log your account in without needing to type anything in except the first time.

Credentials are stored encrypted as a powershell secure string meaning they can't be decrypted except on the computer and only the user profile that created them.

As for the response from CCP....well you never know. This isn't any more third party program use than launching multiple eve clients with a batch file or powershell. It never interfaces with the client, only passes a sso token at start, exactly the way the lawnchair does it. Let's hope they don't ban us all (especially me, I'm too young to get podded!) and at least just remove this thread if they have an issue with it.

Just pop this into a text file, name it autologin.ps1 or something and put it in a folder preferably in my documents. On first run, it will ask for your eve credentials. If you mess up, just delete the encrypted.dat file and it will ask you again.

Anyway, without further ado here's the code.

http://www.mediafire.com/download/otr3m9w8188im8p

As for maliciousness...just read the damn code. No accusations, please.

PLEASE post back any problems. this is only the beta of the script.


While you were dissecting all of that, did you ask yourself if there might be reasons why they want us to re-authenticate instead of just being able to get back in at the press of a button?
Chribba
Otherworld Enterprises
Otherworld Empire
#3 - 2015-02-11 14:57:38 UTC  |  Edited by: Chribba
Sounds like the basic auth to get the sso token, which has been ok in the past, however noted should be that CCP does not guarantee that this method works and that they can make changes to the login procedure at any time.

I've used this way of getting the token for my own launcher since the release of the launcher Or well not OP's code but my own. Just a shame we can't add /character=123456789 to chose what character to log on as well.


Frostys Virpio wrote:
While you were dissecting all of that, did you ask yourself if there might be reasons why they want us to re-authenticate instead of just being able to get back in at the press of a button?
You can only use the token once. The token however last a while before needing re-auth unless used.

/c

★★★ Secure 3rd party service ★★★

Visit my in-game channel 'Holy Veldspar'

Twitter @ChribbaVeldspar

Rain6637
GoonWaffe
Goonswarm Federation
#4 - 2015-02-11 19:02:26 UTC
Explain it like I'm five, please. Right-click and run the ps1 with PowerShell, enter info, then what?
Michael Bone
Viper-Squad
Pandemic Horde
#5 - 2015-02-11 19:28:22 UTC
Then it should automatically start eve and log you in. if it didnt, it may not have been able to find your eve install from the registry or something else. please uncomment the write-output lines and pm me the output.
Rain6637
GoonWaffe
Goonswarm Federation
#6 - 2015-02-11 19:40:19 UTC
Ah. I think I know what's going on. None of my EVE directories are simply named "EVE." I have separate install folders for each account, named slightly different based on the main that resides on them. They're also on different hard drives, only half of them the OS drive.

I would send you what output you're looking for, but I don't know where it went.

What needs to change for multiple install directories? Screenshot
Orlacc
#7 - 2015-02-11 19:42:49 UTC
In b4 "I got hacked!" thread.

"Measure Twice, Cut Once."

Rain6637
GoonWaffe
Goonswarm Federation
#8 - 2015-02-11 19:48:25 UTC
ISD Ezwal
ISD Community Communications Liaisons
ISD Alliance
#9 - 2015-02-11 19:52:45 UTC
This thread has been moved to EVE Technology Lab.

ISD Ezwal Community Communication Liaisons (CCLs)

Faby Rasputin
XoXCorp
#10 - 2015-02-11 20:37:00 UTC
This has already been done a long time ago.

Sorry you didn't do any research before wasting your time.

RLEL ( Rapid Light Eve Launcher )

https://github.com/Frostbite/rlel
Rain6637
GoonWaffe
Goonswarm Federation
#11 - 2015-02-12 00:50:29 UTC
Sort of. That program assumes I use the same directory for all accounts, which would break a lot of things.

Michael, I think this is a worthwhile exercise of your skills, and I hope you continue.

Don't mind Faby. If that's how snarky they get over this, I wonder how they get over important matters.
Michael Bone
Viper-Squad
Pandemic Horde
#12 - 2015-02-12 02:26:08 UTC  |  Edited by: Michael Bone
Faby Rasputin wrote:
This has already been done a long time ago.

Sorry you didn't do any research before wasting your time.

RLEL ( Rapid Light Eve Launcher )

https://github.com/Frostbite/rlel



I googled "Eve auto login" and similar queries and that didn't make it into the first three pages.

That being said, 1) anyone who uses that has to trust whoever compiled it, whereas this is a script anyone can read and 2) I prefer the encryption scheme used by this script to secure the user's password, 3) people can edit this to do even more if they have know-how because the part that takes research is done, and finally 4) multiple options in software is never, ever a bad thing.

If I still had a cyno alt I'd probably look into using that, thanks for the link...not so much the condescension.
SJ Astralana
Syncore
#13 - 2015-02-12 04:22:56 UTC
I applaud your efforts, as I HATE the damned EVE launcher. But the reason I hate it is it's always open, and never has the brains to auto-update before launching the client which tells me it needs to be updated.

Hyperdrive your production business: Eve Production Manager

Michael Bone
Viper-Squad
Pandemic Horde
#14 - 2015-02-12 04:51:58 UTC  |  Edited by: Michael Bone
Rain6637 wrote:
Sort of. That program assumes I use the same directory for all accounts, which would break a lot of things.

Michael, I think this is a worthwhile exercise of your skills, and I hope you continue.

Don't mind Faby. If that's how snarky they get over this, I wonder how they get over important matters.


Thanks for your support.

http://www.mediafire.com/download/h469r8crb0jc7j1 (beta2)

Try that. Just drop it into the main eve directory in each install.

(there should be a \bin folder inside the folder you put that in)

SJ Astralana wrote:
I applaud your efforts, as I HATE the damned EVE launcher. But the reason I hate it is it's always open, and never has the brains to auto-update before launching the client which tells me it needs to be updated.


I could theoretically make a background updater service for eve. I know that wasnt the point of what you were saying, just throwing it out there.
Rain6637
GoonWaffe
Goonswarm Federation
#15 - 2015-02-12 05:46:16 UTC  |  Edited by: Rain6637
Hey, it worked. Once. I put it in the install directory (normally EVE\ ), because it didn't respond in \bin\. NES worked and everything. I closed the client to try it again, and it has been unresponsive.

I put another copy of the virgin ps1 file in another install directory, and it won't bring up the credentials box anymore. It closes after flashing some red text, too fast for me to read.

I'm using Windows 8.1 64bit

I have a sidebar full of shortcuts to each individual launcher, and if I could replace those with shortcuts to each ps1 file, that would be excellent. It would be a single click client login.

I'm already OK with the routine of opening each launcher for updates, but I mean, if you could make that happen as well, that would be fantastic.
Michael Bone
Viper-Squad
Pandemic Horde
#16 - 2015-02-12 05:52:08 UTC
Rain6637 wrote:
Hey, it worked. Once. I put it in the install directory (normally EVE\ ), because it didn't respond in \bin\. NES worked and everything. I closed the client to try it again, and it has been unresponsive.

I put another copy of the virgin ps1 file in another install directory, and it won't bring up the credentials box anymore. It closes after flashing some red text, too fast for me to read.

I'm using Windows 8.1 64bit

open up powershell (windows key, then type in powershell)

type in cd C:\eve\game\folder (path to your game folder) and hit enter

type in ./eve_autologin_beta2.ps1 and hit enter.

let me know what error it gives (I bet I know)

just dont paste anything with your auth token here.
Rain6637
GoonWaffe
Goonswarm Federation
#17 - 2015-02-12 05:53:12 UTC  |  Edited by: Rain6637
Yeah I tried that, I just don't know how to make it navigate into/past Program Files (x86)\, it gives me an error message about (x86) being invalid. http://i.imgur.com/XrTRheU.png
Michael Bone
Viper-Squad
Pandemic Horde
#18 - 2015-02-12 05:57:44 UTC
Rain6637 wrote:
Yeah I tried that, I just don't know how to make it navigate into/past Program Files (x86)\, it gives me an error message about (x86) being invalid. http://i.imgur.com/XrTRheU.png


Ahh. enclose the path in quotes.

"C:\Program Files (x86)\EVE6389\"

Unrelated: why am I getting a message telling me my account is less than two days old and I have to wait to post a message? /grumble
Rain6637
GoonWaffe
Goonswarm Federation
#19 - 2015-02-12 05:58:27 UTC  |  Edited by: Rain6637
first forum visit was yesterday lol.

brb.

K, so I set my execution policy to Unrestricted, and it worked consistently when launched from this Administrator Powershell window.

I still had confirmations, so I set the execution policy to Bypass, and the confirmations went away. Worked consistently from the Administrator Powershell window.

But double clicking the ps1 file in the install directory is still unresponsive. That Powershell window keeps closing before I can see what's going on.

It's probably administrator rights, isn't it. I'm not sure how to enable that in the double click process.
Michael Bone
Viper-Squad
Pandemic Horde
#20 - 2015-02-12 06:23:41 UTC
Rain6637 wrote:
first forum visit was yesterday lol.

brb.

K, so I set my execution policy to Unrestricted, and it worked consistently when launched from this Administrator Powershell window.

I still had confirmations, so I set the execution policy to Bypass, and the confirmations went away. Worked consistently from the Administrator Powershell window.

But double clicking the ps1 file in the install directory is still unresponsive. That Powershell window keeps closing before I can see what's going on.


You have to run it as admin because you are trying to save a file (the encrypted key) to the directory with it, and program files is a read only dir to user level accounts. My guss is that its errorng out because clicking it in the directory runs it as user, not admin.

make a shortcut to it on desktop and follow these instructions to make it always run as admin.
2. Right-click the application’s shortcut, and then click Properties.
3. In the Properties dialog box, click the Compatibility tab.
4. Do one of the following:

To apply the setting to the currently logged-on user, select the Run This Program As An Administrator check box, and then click OK.
To apply the setting to all users on the computer and regardless of which shortcut is used to start the application, click Change Setting For All Users to display the Properties dialog box for the application’s .exe file, select the Run This Program As An Administrator check box, and then click OK twice.

also try double clicking it in one of the eve installs you have that is on a different drive. I bet it will work there.
123Next pageLast page