Jump to content

Command Line

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
13 replies to this topic

#1
BlaineSch

BlaineSch

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,448 posts
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?

#2
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,298 posts
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

#3
Guest_Jordan_*

Guest_Jordan_*
  • Guests
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
BlaineSch

BlaineSch

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,448 posts
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.

#5
Guest_Jordan_*

Guest_Jordan_*
  • Guests
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
BlaineSch

BlaineSch

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,448 posts
Do you have any links on how I would do this? I do not know much about telnet or ssh things.

#7
Guest_Jordan_*

Guest_Jordan_*
  • Guests
I might, what language?

#8
BlaineSch

BlaineSch

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,448 posts
Since its the command line wouldnt it be more operating system based? I am using C++

#9
BlaineSch

BlaineSch

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,448 posts
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_*

Guest_Jordan_*
  • Guests

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
BlaineSch

BlaineSch

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,448 posts
I really do not know what you mean do you have any examples I can see?

#12
AE7

AE7

    Newbie

  • Members
  • Pip
  • 6 posts
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.