ctrl+c before process being killed?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
raspberry109
Posts: 29
Joined: 07 Jun 2017 23:40

ctrl+c before process being killed?

#1 Post by raspberry109 » 07 Jun 2017 23:43

how to add to batch Terminate batch job (Y/N)?
Last edited by raspberry109 on 08 Jun 2017 23:38, edited 1 time in total.

aGerman
Expert
Posts: 4654
Joined: 22 Jan 2010 18:01
Location: Germany

Re: ctrl+c before process being killed?

#2 Post by aGerman » 08 Jun 2017 00:45

The batch script stops as long as hydra runs and waits for its termination. After your hydra process quitted the script resumes with the next line. So the problems are
- while your script waits for hydra it can't do anything else in parallel
- a batch process can't detect if somebody restarts your pc (and if somebody kills the process ... well ... it would be always too late for whatever action)
- emulating key strokes can't be done with pure batch
Sorry but I'm out of ideas.

Steffen

raspberry109
Posts: 29
Joined: 07 Jun 2017 23:40

Re: ctrl+c before process being killed?

#3 Post by raspberry109 » 08 Jun 2017 01:12

other idea is to update and save the hydra.restore file every 10 min or any 1000 lines
here hydra last version no need installation: https://github.com/maaaaz/thc-hydra-win ... s/tag/v8.5


Post Reply