Windows passwords, web page sign in and batch files
Page 1 of 1
Karmeck




Posts: 3350
Location: Sweden
PostPosted: Sat, 10th Sep 2016 22:15    Post subject: Windows passwords, web page sign in and batch files
So my other project is on ice until September 26th. But I found something else to fix.

We have a salary system combined with a schedule system. We log in to it now and then but now to the thing I want to fix. For some reason we have to use third party software (Citrix) to log in to this system. So first we have to log in to the third party software and then the salary system. Now the passwords are the same and sync if ever changed anywhere.

The way Citrix works is it starts a remote access to a windows desktop and inside the app we have shortcuts to application like outlook, salary system and the internal network. 2 of those are just links to web pages that has to be run inside the internal network. Passwords inside the bat file would still be secure as the bat file would be located on your own hard drive that evry employee has access to only thro thire own login.

I have found a way for a bat file to open a web page and enter the log in credentials, but once again this need to be as simple as possible so I need a way for this bat file to get the login credentials for windows (witch are synced with the salary system) and input them in to this other website.

Can this be done?

Here is the code for the bat file.

http://stackoverflow.com/questions/29403376/automatically-open-a-browser-and-login-to-a-site

Think we are using windows 7.
Back to top
paxsali
Banned



Posts: 18352

PostPosted: Sat, 10th Sep 2016 23:19    Post subject:
⁢⁢


Last edited by paxsali on Thu, 4th Jul 2024 21:24; edited 1 time in total
Back to top
Karmeck




Posts: 3350
Location: Sweden
PostPosted: Sun, 11th Sep 2016 00:25    Post subject:
As the user can change password I don't want them to have to go in to the bat file and change what the bat file will put in to the website. It all has to be automated. It should just work.


Back to top
Karmeck




Posts: 3350
Location: Sweden
PostPosted: Sun, 11th Sep 2016 01:01    Post subject:
It really doesn't need to be a bat file. Just need a way to automatically log in to the website.


Back to top
paxsali
Banned



Posts: 18352

PostPosted: Sun, 11th Sep 2016 01:01    Post subject:
⁢⁢


Last edited by paxsali on Thu, 4th Jul 2024 21:24; edited 1 time in total
Back to top
Karmeck




Posts: 3350
Location: Sweden
PostPosted: Sun, 11th Sep 2016 01:31    Post subject:
The same password is used in outlook if that is easier.


Back to top
Karmeck




Posts: 3350
Location: Sweden
PostPosted: Sun, 11th Sep 2016 02:27    Post subject:
Could not get it to work with the script above but found a working VbScript.



Now really I just need windows to give me the login credentials. I don't need to see them just have them entered into the login form on this other website.


Back to top
VGAdeadcafe




Posts: 22230
Location: ★ ಠ_ಠ ★
PostPosted: Sun, 11th Sep 2016 02:42    Post subject:
I am not sure I get it. You want to get the windows login/pass combo programmatically?
Back to top
Karmeck




Posts: 3350
Location: Sweden
PostPosted: Sun, 11th Sep 2016 02:46    Post subject:
As the login using the remote access app on my phone is the same as login to windows, outlook and this website I want in to automatically. I just need a way to get that info be passed along using the VbScript to this website and logged in.


Back to top
paxsali
Banned



Posts: 18352

PostPosted: Sun, 11th Sep 2016 03:29    Post subject:
⁢⁢


Last edited by paxsali on Thu, 4th Jul 2024 21:24; edited 1 time in total
Back to top
VGAdeadcafe




Posts: 22230
Location: ★ ಠ_ಠ ★
PostPosted: Sun, 11th Sep 2016 04:09    Post subject:
Windows doesn't provide an API for that but you can use a tool like this to get the credentials of the currently logged in user. Not sure if it works on newer winOSes.

http://blog.gentilkiwi.com/mimikatz

Personally I would use AutoIt to scrape the output of the tool and get the user/pass. And I would use AutoIt to automate an Internet Explorer session and so on. No batch file or vbscript gayness.
Back to top
Karmeck




Posts: 3350
Location: Sweden
PostPosted: Sun, 11th Sep 2016 08:25    Post subject:
VGAdeadcafe wrote:
Windows doesn't provide an API for that but you can use a tool like this to get the credentials of the currently logged in user. Not sure if it works on newer winOSes.

http://blog.gentilkiwi.com/mimikatz

Personally I would use AutoIt to scrape the output of the tool and get the user/pass. And I would use AutoIt to automate an Internet Explorer session and so on. No batch file or vbscript gayness.


Thank you. There is a sso inside Citrix, don't know why they don't use it.
Back to top
Page 1 of 1 All times are GMT + 1 Hour
NFOHump.com Forum Index - The Useless Void
Signature/Avatar nuking: none (can be changed in your profile)  


Display posts from previous:   

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.8 © 2001, 2002 phpBB Group