I'm looking for a script that changes a password in a bit locker without user intervention, if I run manage-bde - changepassword c: ask me to type a password and it's not good for me, I want to enter everything in the script, vbs or c # or api
Related
So I have a password that my password manager overwrote, and I self host the server (NextCloud) and I would like to know if it is possible to revert the hashed password with the salt key I have, I heard NextCloud uses Argon2i when using PHP 7.0 and later (and I'm running PHP 7.0 or later) so is it possible to revert my password back to it's original state and put it back into the password manager (Sorry I'm a bit of a noob when it comes to dehashing/decrypting passwords because I've never needed to dehash/decrypt my passwords before)
Edit: If I were to provide my argon'd password, could someone crack it or better yet tell me how to crack it, based on the mysql database it seems to have the parameters used to make the password by argon (probably to de-argon it to check if the password is actually correct)
This is a very specific solution but in the event that you are using nextcloud and you have access to the account when losing your password, just download all the files, make a new account and upload them to that account and delete the old account
I downloaded a script a year or so ago. The script comes with a sql file that needs to be imported into a database that you can create with phpmyadmin or the normal process in Cpanel.
After installing the script you need to go the the admin section. There I need a USERNAME and PASSWORD.
Looking at the sql file that came with the script the username is admin#admin.com and the password is a hash value and there are some characters in the salt field.
My question is - How can I change the password to be able to login to the script.
In phpmyadmin I change the admin#admin.com password to 123456 and set it as
MD5 and cleared the salt field
Expected result - Be able to login to the script backend
Actual result - Not happening
Sorry for my bad English, but if you can help my it will be great.
I have couple of file system over my network and every night I need to take one file from another file system to mine.
for that to happen i'm using a Batch script how mapping me the drive with net use command.
my problem is that i don't want the password will go through clear text
( To see my password or to sniff it).
my questions is :
there is any way that i can encrypt my password and still login with the same credentials.
Thank You
If you can set up a Domain controller using either one of your Windows machines, or Samba, then you could use Trusted authentication based on the user executing the scheduled job that executes the batch file.
Alternately, you could encrypt the password and have a program decrypt it and execute the net use, but you're always* going to be faced with the fact that if your computer can send the password out when you don't type it in, then your computer knows your password, and anyone with physical access to that computer can get your password.
*Unless your computer doesn't know the password, and instead relies on an HSM (Hardware Security Module).
I had the same thing but found a nice workaround.
The passwords are not stored in DOS so I went from the run menu and simply typed the name of the path like "\server\files".
When it asked for credentials I ticked the checkbox "Save credentials"
The password will then be stored in your Windows Credential Manager (control panel) and this way your dos batch file fwill always now the password.
Is there a way to gain root access without user input?
I want a script automatically looks at a stored password, then authenticates with that password. Is there a way to do this without user input? I tried man su and man sudo, but these don't support this. Is this possible?
P.S: I know python, sh and bash.
Check out this link. It explains how to do this in python. Root Access Python
The basic of it is changing the permission of the script itself.
Option 1 - Use cron
If the script is a cron job, it can be kicked off by root's crontab. Then it is automatically running as root. Be REALLY careful though as you are running as root. Anyone who can change your script has just become root.
Option 2 - Set up a new id
If the task can be done by a non-root user, you don't actually need root each time.
I have a whole series of commands that I need to run on login, many of which require root privileges. So, to save a few steps I put them all into one apple script so I wouldn't have to open the terminal.
But still, I'd like to be able to do this without entering my password at all (I like to boot my machine early AM while I'm still sleeping). So I thought, why not just store my admin password in the keychain and have the script access that key.
But this just feels wrong, storing the admin password in keychain...
So, what are your thoughts? Is this an acceptable method of giving my program permission? If applescript isn't secure enough, I could easily do this with a simple cocoa app.
I do this myself. I store admin passwords for other computers so I can auto-mount shares over my lan using applescript scripts. In my opinion, if the keychain is secure enough to hold any password then it must be secure enough to hold all passwords. The password is never displayed in the clear so I don't see a problem.
Of course there's always a security risk when someone has direct access to your computer. They can run an applescript to pull your password out of the Keychain if they know the name of the key where it is stored and they are accessing the keychain from your admin account. But if someone has that much access then your computer isn't safe anyway.