So I am using Windows XP Pro. Many of you may have seen the thead about my truecrypt thing. I am wanting to figure out this, if I have a program open, is there a way to throw commands at it. Right now I can open up truecrypt feed it a command to open a container, change the password, dismount, etc. But when I am done it closes.
The program I am running will take a long time to run, opening, guessing, closing, loop forever lol. So is there a way to feed an open program commands?
Command Line
Started by BlaineSch, Jul 23 2009 08:45 PM
13 replies to this topic
#1
Posted 23 July 2009 - 08:45 PM
|
|
|
#2
Posted 23 July 2009 - 11:36 PM
if it's a cli-program (command line interface program) then you just add a menu that loops around...
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall
I study Information Systems at Karlstad University when I'm not on CodeCall
#3
Guest_Jordan_*
Posted 24 July 2009 - 04:24 AM
Guest_Jordan_*
That depends on how it is coded, really. I've seen some programs have a telnet like backend that you can access and feed commands but they were specifically built with that feature/purpose.
#4
Posted 24 July 2009 - 04:38 AM
It accepts "cli" things which is the basis of my program. Do you have any examples? I think it has a max number of inputs it can take tho.
truecrypt /v file.tc /p password /q
Thats the basis of it. The "truecrypt" part starts the program, the v is the volume, and the q to quit which is required I think. I can add a few more passwords but then it just closes on me.
truecrypt /v file.tc /p password /q
Thats the basis of it. The "truecrypt" part starts the program, the v is the volume, and the q to quit which is required I think. I can add a few more passwords but then it just closes on me.
#5
Guest_Jordan_*
Posted 24 July 2009 - 04:56 AM
Guest_Jordan_*
Well, sorry, I guess CLI params wasn't the right term. You want to pass params to it after it has loaded, correct? You'll need some kind of CLI backend, like a basic telnet client that is a new thread in truecrypt. As it receives commands it changes the frontend or whatever you want it to do.
#6
Posted 24 July 2009 - 03:12 PM
Do you have any links on how I would do this? I do not know much about telnet or ssh things.
#7
Guest_Jordan_*
Posted 24 July 2009 - 03:21 PM
Guest_Jordan_*
I might, what language?
#8
Posted 24 July 2009 - 04:12 PM
Since its the command line wouldnt it be more operating system based? I am using C++
#9
Posted 25 July 2009 - 09:39 AM
The program is extremely slow on this computer. It did 58^3 requests in one day. Roughly 195,112 requests. Thats the last 3 characters have changed, for the forth character to change all the way through itll take 58 times that which is 58 days... thats just for 4 characters... (11,316,496 requests) and I am trying to go up to 58^22-58^18 which is obviously a ton!
#10
Guest_Jordan_*
Posted 26 July 2009 - 06:34 AM
Guest_Jordan_*
BlaineSch said:
Since its the command line wouldnt it be more operating system based? I am using C++
You still have to write the backend interface though, right? You could, instead of using the backend server idea, just write the program in such a way that if it is already running, it just finds the thread it is running on and sends it a signal.
#11
Posted 26 July 2009 - 08:39 AM
I really do not know what you mean do you have any examples I can see?
#12
Posted 26 July 2009 - 09:44 PM
Just an idea, a difficult one.
You could write the program in C++, and create an interface with HTML then use PHP to pass the information to a Bash script. The Bash script would then execute the program using the info submitted by the user.
You could write the program in C++, and create an interface with HTML then use PHP to pass the information to a Bash script. The Bash script would then execute the program using the info submitted by the user.


Sign In
Create Account



Back to top









