How to run this command automaticaly ?

Discussion in 'Programming' started by giancarloks, May 14, 2016.

  1. giancarloks

    giancarloks New Member

    May 12, 2016
    Likes Received:
    Trophy Points:
    I use ncrack and i use some pass lists , 20 mb , i want to split the list in 20 peaces , 1 mb each.I start ncrack with first 1mbPASS.TXT after some hours is finishing, then i must change 1mbPass.txt file to 2mbPass.txt and start again.Anyone knows a script or something to start the second pass list automatically ? hehe

    I open cmd.exe and i paste manually this stirng:
    ncrack -v --user Admin -P 1mbPASS.TXT

    after is finishing i paste manually the second string with the second pass :
    ncrack -v --user Admin -P 2mbPASS.TXT

    Anyone knows a script or soemthing to run AUTOMATICALLY the second pass the 3'rd pass lists and not paste manually the code everytime ncrack finishing ?
  2. Louis Zorbas

    Louis Zorbas New Member

    Aug 26, 2016
    Likes Received:
    Trophy Points:
    rc.local has solved this for me, and although I have read is outdated But kept around for compatibility, if somebody has the updated, but JUST AS SIMPLE answer, please share as I will update my server.

    sudo nano /etc/rc.local

    and I tried adding both

    # By default this script does nothing.

    sudo service deluged restart

    exit 0

    the first, i created a script in /home/donut/

    with JUST

    sudo service deluged restart

    the second I just pasted the command right into rc.local

    The second works fine for me, but if you have a long script, or a script you want to change a lot without editing rc.local, then the first option is for you.


Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice