Advertisement
Guest User

Untitled

a guest
Apr 18th, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.39 KB | None | 0 0
  1. #!/bin/bash
  2. x=1
  3.  
  4. while [ $x -lt 10000 ]; do
  5.  
  6.     if [[ "${#x}" < 2 ]]
  7.     then
  8.             x="000${x}"
  9.     fi
  10.    
  11.     if [[ "${#x}" < 3 ]]
  12.         then
  13.                 x="00${x}"
  14.         fi
  15.  
  16.     if [[ "${#x}" < 4 ]]
  17.         then
  18.                 x="0${x}"
  19.         fi
  20.  
  21.  
  22.     echo "UoMYTrfrBFHyQXmg6gzctqAwOmw1IohZ $x" | nc localhost 30002 &>> file
  23.  
  24.     x=$(echo $x | sed 's/^0*//')
  25.     x=$((x+1))
  26. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement