How to get the Torcc hash password? - windows

Im new to tor browser and following this tutorial, and i have to run this command
tor.exe --hash-password <hash_control_password> | more
but how can we obtain this <hash_control_password>

Related

How to pass slrum command (sinfo) in os process sampler using jmeter

I have to make a jmeter script to connect putty and provide host name and click on connect which will open a cmd asking for user name and pwd.
Post which I have to type slrum command that is sinfo and it will retrieve data and finally an exit.
I have used plink to achieve the same.
In command parameter of os sampler,
/C
Plink -ssh user#host -pw password
I am able to successfully connect to putty and reach till pwd entry.
On typing slrum command in cmd manually,it is fetching result but the same sinfo when am trying to achieve through os process sampler it is giving error as sinfo command not found.
How to provide sinfo command from os process sampler to fetch correct output.
I don't know what is slrum or sinfo but I can think about some possible reasons:
You're logging into a session which doesn't call shell scripts to set the relevant PATH environment variable, i.e. this issue suggests to add /usr/local/bin to your PATH. I'm not sure how your installation looks like but you could try to use the full path like:
/usr/local/bin/sinfo
or whatever
You might want to pass -ssh key to your plink to force to use SSH protocol
And last but not the least, there is SSH Command plugin which don't require 3rd-party executables
Demo:
More information: How to Run External Commands and Programs Locally and Remotely from JMeter

Heroku Login Bash Script

Im trying to automate the login action of the Heroku CLI.
I found this answer but Im not using Ubuntu (Windows) and it looks like expect is only usable in Ubuntu.
I have: echo -ne "email#example.com\nsecurePassword123\n" | heroku login -i
But this is not working properly.

Docker login to gcp using json credentials

I want to log into docker on google cloud from the command line in Windows using credentials in json format.
Firstly, I generated the keys of the service accounts in google cloud IAM & Admin. Afterwards, I tried to login as advised using the following commands:
set /p PASS=<keyfile.json
docker login -u _json_key -p "%PASS%" https://[HOSTNAME]
The json that is generated from google, though, has newline characters and the
above set command couldn't read the whole file.
Then, I edited the file to be a single line. But still, the set command is not reading the whole file. Any advice on how to read a json file using the set command and pass it to the docker login command below?
The solution on this is to run the following command:
docker login -u _json_key --password-stdin https://gcr.io < keyfile.json

Bash script for automating cntlm proxy password generation

I want to use the tool cntlm to authenticate via basic authentication against our corporate proxy server, which uses the ntlm protocol.
CNTLM uses a cntlm.conf file to get your proxy authentication credentials.
If you don't want to use your password in plain text, you can generate hashes with the command. (That's what I want!)
cntlm -u <user> -d <domain> -f -H.
The problem here is, that we use a rolling password policy here and I want to write a bash script for automating the hash generation, inserting in the config file and restarting the cntlm service.
Unfortunately the above shown command generates the password hashes interactively and I couldn't find a way to wrap this in a bash script.
I am a bash scripting newbie though and could use some advice here ;)
For my cntlm version (0.92.3) a simple echo pipe works like charm:
echo "PASSWORD" | cntlm -u USER -d DOMAIN -f -H

How would I construct a terminal command to download a folder with wget from a Media Temple (gs) server?

I'm trying to download a folder using wget on the Terminal (I'm usin a Mac if that matters) because my ftp client sucks and keeps timing out. It doesn't stay connected for long. So I was wondering if I could use wget to connect via ftp protocol to the server to download the directory in question. I have searched around in the internet for this and have attempted to write the command but it keeps failing. So assuming the following:
ftp username is: serveradmin#mydomain.ca
ftp host is: ftp.s12345.gridserver.com
ftp password is: somepassword
I have tried to write the command in the following ways:
wget -r ftp://serveradmin#mydomain.ca:somepassword#s12345.gridserver.com/path/to/desired/folder/
wget -r ftp://serveradmin:somepassword#s12345.gridserver.com/path/to/desired/folder/
When I try the first way I get this error:
Bad port number.
When I try the second way I get a little further but I get this error:
Resolving s12345.gridserver.com... 71.46.226.79
Connecting to s12345.gridserver.com|71.46.226.79|:21... connected.
Logging in as serveradmin ...
Login incorrect.
What could I be doing wrong?
Use scp on the Mac instead, it will probably work much nicer.
scp -r user#mediatemplehost.net:/folder/path /local/path

Resources