SHARE
TWEET

Untitled

a guest Jan 14th, 2020 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. c=$(tput cols)
  3. red="\033[1;91m"
  4. green="\033[1;92m"
  5. y="\033[1;93m"
  6. white="\033[1;37m"
  7. oc=$((${#o1}+6))
  8. echo -e ${white}
  9. echo "┌────────────────────────────────────────────────────────────┐"
  10. echo "│                                                            │"
  11. echo "│  _|_|_|    _|_|_|    _|_|      _|_|_|    _|_|_|  _|  _|_|  │"
  12. echo "│_|        _|    _|  _|_|_|_|  _|_|      _|    _|  _|_|      │"
  13. echo "│_|        _|    _|  _|            _|_|  _|    _|  _|        │"
  14. echo "│  _|_|_|    _|_|_|    _|_|_|  _|_|_|      _|_|_|  _|        │"
  15. echo "│           by:ahmed;GitHub:github.com/ahmedmahmed8a         │"
  16. echo "│           WA:+201150119895;                                │"
  17. echo "└────────────────────────────────────────────────────────────┘"
  18. echo ;echo;
  19. if [[ -z $1 ]]; then
  20.     #statements
  21.     if [[ -z $(cat <&0<<'eof') ]]; then
  22.         #statements
  23.         read -p "text to encode/decode > " stdin
  24.     else
  25.         stdin=$(cat <&0)
  26.     fi
  27. else
  28.     stdin=$1
  29. fi
  30.  
  31. o1=$(echo $stdin|tr [a-z] [b-za-a]|tr [A-Z] [B-ZA-A])
  32. o2=$(echo $stdin|tr [a-z] [c-za-b]|tr [A-Z] [B-ZA-A])
  33. o3=$(echo $stdin|tr [a-z] [d-za-c]|tr [A-Z] [B-ZA-A])
  34. o4=$(echo $stdin|tr [a-z] [e-za-d]|tr [A-Z] [B-ZA-A])
  35. o5=$(echo $stdin|tr [a-z] [f-za-e]|tr [A-Z] [B-ZA-A])
  36. o6=$(echo $stdin|tr [a-z] [g-za-f]|tr [A-Z] [B-ZA-A])
  37. o7=$(echo $stdin|tr [a-z] [h-za-g]|tr [A-Z] [B-ZA-A])
  38. o8=$(echo $stdin|tr [a-z] [i-za-h]|tr [A-Z] [B-ZA-A])
  39. o9=$(echo $stdin|tr [a-z] [j-za-i]|tr [A-Z] [B-ZA-A])
  40. o10=$(echo $stdin|tr [a-z] [k-za-j]|tr [A-Z] [B-ZA-A])
  41. o11=$(echo $stdin|tr [a-z] [l-za-k]|tr [A-Z] [B-ZA-A])
  42. o12=$(echo $stdin|tr [a-z] [m-za-l]|tr [A-Z] [B-ZA-A])
  43. o13=$(echo $stdin|tr [a-z] [n-za-m]|tr [A-Z] [B-ZA-A])
  44. o14=$(echo $stdin|tr [a-z] [o-za-n]|tr [A-Z] [B-ZA-A])
  45. o15=$(echo $stdin|tr [a-z] [p-za-o]|tr [A-Z] [B-ZA-A])
  46. o16=$(echo $stdin|tr [a-z] [q-za-p]|tr [A-Z] [B-ZA-A])
  47. o17=$(echo $stdin|tr [a-z] [r-za-q]|tr [A-Z] [B-ZA-A])
  48. o18=$(echo $stdin|tr [a-z] [s-za-r]|tr [A-Z] [B-ZA-A])
  49. o19=$(echo $stdin|tr [a-z] [t-za-s]|tr [A-Z] [B-ZA-A])
  50. o20=$(echo $stdin|tr [a-z] [u-za-t]|tr [A-Z] [B-ZA-A])
  51. o21=$(echo $stdin|tr [a-z] [v-za-u]|tr [A-Z] [B-ZA-A])
  52. o22=$(echo $stdin|tr [a-z] [w-za-v]|tr [A-Z] [B-ZA-A])
  53. o23=$(echo $stdin|tr [a-z] [x-za-w]|tr [A-Z] [B-ZA-A])
  54. o24=$(echo $stdin|tr [a-z] [y-za-x]|tr [A-Z] [B-ZA-A])
  55.  
  56. echo -e $green
  57. head -c $c /dev/zero | tr '\0' '_'
  58. echo -e $red "Offset 1:" $y$o1| fmt -c -w $COLUMNS
  59. head -c $c /dev/zero | tr '\0' '_'
  60. echo -e $red "Offset 2:" $y$o2
  61. head -c $c /dev/zero | tr '\0' '_'
  62. echo -e $red "Offset 3:" $y$o3
  63. head -c $c /dev/zero | tr '\0' '_'
  64. echo -e $red "Offset 4:" $y$o4
  65. head -c $c /dev/zero | tr '\0' '_'
  66. echo -e $red "Offset 5:" $y$o5
  67. head -c $c /dev/zero | tr '\0' '_'
  68. echo -e $red "Offset 6:" $y$o6
  69. head -c $c /dev/zero | tr '\0' '_'
  70. echo -e $red "Offset 7:" $y$o7
  71. head -c $c /dev/zero | tr '\0' '_'
  72. echo -e $red "Offset 8:" $y$o8
  73. head -c $c /dev/zero | tr '\0' '_'
  74. echo -e $red "Offset 9:" $y$o9
  75. head -c $c /dev/zero | tr '\0' '_'
  76. echo -e $red "Offset 10:" $y$o10
  77. head -c $c /dev/zero | tr '\0' '_'
  78. echo -e $red "Offset 11:" $y$o11
  79. head -c $c /dev/zero | tr '\0' '_'
  80. echo -e $red "Offset 12:" $y$o12
  81. head -c $c /dev/zero | tr '\0' '_'
  82. echo -e $red "Offset 13:" $y$o13
  83. head -c $c /dev/zero | tr '\0' '_'
  84. echo -e $red "Offset 14:" $y$o14
  85. head -c $c /dev/zero | tr '\0' '_'
  86. echo -e $red "Offset 15:" $y$o15
  87. head -c $c /dev/zero | tr '\0' '_'
  88. echo -e $red "Offset 16:" $y$o16
  89. head -c $c /dev/zero | tr '\0' '_'
  90. echo -e $red "Offset 17:" $y$o17
  91. head -c $c /dev/zero | tr '\0' '_'
  92. echo -e $red "Offset 18:" $y$o18
  93. head -c $c /dev/zero | tr '\0' '_'
  94. echo -e $red "Offset 19:" $y$o19
  95. head -c $c /dev/zero | tr '\0' '_'
  96. echo -e $red "Offset 20:" $y$o20
  97. head -c $c /dev/zero | tr '\0' '_'
  98. echo -e $red "Offset 21:" $y$o21
  99. head -c $c /dev/zero | tr '\0' '_'
  100. echo -e $red "Offset 22:" $y$o22
  101. head -c $c /dev/zero | tr '\0' '_'
  102. echo -e $red "Offset 23:" $y$o23
  103. head -c $c /dev/zero | tr '\0' '_'
  104. echo -e $red "Offset 24:" $y$o24
  105. head -c $c /dev/zero | tr '\0' '_'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top