Printf or any other method to put long string of spec characters - passing passwords
Hello,
I am looking for a method to use in my bash script which allows me to use long strings with all special characters.
I have found that printf method could be helpful for me but unfortunately, when I trying
I am getting error
What is important - I need to pass different length strings, I don't know the length, and the positions of special characters.
This is a password from my password list and I need find working pass to archive.
What can I do to pass very long stream with any special character as a string and put it as variable in bash script?
Or - maybe I can make it outside the bash ? I am using 7 zip command line tool where I need to put the password as parameter like
7z t -pP@55w0rd!
where P@55w0rd! is my password.
What was my fault before (long time ago)- I have had used almost 5000 characters in passwords. I have lot of possible passes in my dictionary, and I am sure, that one of them will be correct.
Last edited by rbatte1; 11-15-2017 at 07:10 AM..
Reason: CODE tags and spelling corrections
The "here document" is the correct method of storing a password in the script.
--
If you have a pwlist with one password per line then you can do
Remove the echo to run the 7z command.
I have a topic line in markdown that spans more than 80 characters that i need to add a line break. Markdown is simply treating the line break as a brand new line instead of continuing as a topic line.
Eg:
# This is a very long
line
Markdown interprets it as
This is a very long
line (4 Replies)
Hi,
I am using awk here.
Inside an awk script, I have a variable which contains a very long XML data in string format (500kb).
I want to pass this data (as argument) to curl command using system function.
But getting Too many arguments error due to length of string data(payloadBlock).
I... (4 Replies)
below line is one by one print
audio_play PASS
boot_check FAIL
ethernet_change_mac NIC_82574L PASS
gps_ublox_neo FAIL
storage_bonnie USB2 PASS
storage_copy_big_file USB2 PASS
I would like below format ... (7 Replies)
Hi,
I haven't programed in C in a few years. I have been doing a lot of shell scripting, I.E. not really programming anything heavy. :o
That said, I have a script that gives hourly usage statistics for our email server. It runs w-a-y to slow as a script for my impatience, and needs to... (7 Replies)
I have an for loop that reads the following file
cat param.cfg
val1:env1:opt1
val2:env2:opt2
val3:env3:opt3
val4:env4:opt4
.
.
The for loop extracts the each line of the file so that at any one point, the value of i is
val1:env1:opt1 etc...
I would like to extract each... (19 Replies)
Hi.,
I need transfer as parameter into shell script some spec. characters, for example " or ' or & or \ at the end of second parameter. (this parameter used as changed password).
How I can transfer it into shell script.
Thanks Staas,. (5 Replies)
Hi All ,
I need to call a script runscript_B.sh on server A, the runscript_B.sh script locating in server B.
The runscript_B.sh in calls another script runscript_A on server A itself.
it seend, i need to be connect from Server A to Server B using ssh.
I have tryed like this in... (3 Replies)
how i can read a long integer from standar input and a string with as many characters as specified in the number?
i thing that i must use the read command ofcourse.... (6 Replies)