├── IMG_20210603_190203.jpg
├── IMG_20210603_190222.jpg
├── LICENSE
├── README.md
├── frustator.py
└── logo.jpg
/IMG_20210603_190203.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/anubhavanonymous/Bash_Frustator/48c9dde86b63264aaaa6860ad88fa5421a75b9d8/IMG_20210603_190203.jpg
--------------------------------------------------------------------------------
/IMG_20210603_190222.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/anubhavanonymous/Bash_Frustator/48c9dde86b63264aaaa6860ad88fa5421a75b9d8/IMG_20210603_190222.jpg
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | BSD 3-Clause License
2 |
3 | Copyright (c) 2021, Anubhav Kashyap
4 | All rights reserved.
5 |
6 | Redistribution and use in source and binary forms, with or without
7 | modification, are permitted provided that the following conditions are met:
8 |
9 | 1. Redistributions of source code must retain the above copyright notice, this
10 | list of conditions and the following disclaimer.
11 |
12 | 2. Redistributions in binary form must reproduce the above copyright notice,
13 | this list of conditions and the following disclaimer in the documentation
14 | and/or other materials provided with the distribution.
15 |
16 | 3. Neither the name of the copyright holder nor the names of its
17 | contributors may be used to endorse or promote products derived from
18 | this software without specific prior written permission.
19 |
20 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 | 
3 |
4 |
5 | * `🔓 🔐 🔒`
6 | * `Shell script obfuscator and deobfuscator for Linux And Termux !`
7 | * `Encodes the script in base64`
8 |
9 | ## Usage
10 | Install dependencies
11 | ```bash
12 | pkg up -y;pkg install git -y;pkg install wget -y;pkg install curl -y;pkg install openssl -y;pkg install python2 -y;pip2 install requests;pip2 install mechanize;pip2 install bs4;pip2 install uncompyle6;npm install -g bash-obfuscate
13 | ```
14 | Clone the repository
15 | ```bash
16 | git clone https://github.com/anubhavanonymous/Bash_Frustator
17 | ```
18 | Navigate to the directory
19 | ```bash
20 | cd Bash_Frustator
21 | ```
22 | Run the script
23 | ```bash
24 | python2 frustator.py
25 | ```
26 |
27 | ## Licence
28 | BSD 3-Clause © Anubhav Kashyap
29 |
30 | ## Screenshots (termux)
31 | 🎋 `encrypt`
32 |
33 |
34 | 
35 |
36 | 🎋 `decrypt`
37 |
38 |
39 | 
40 |
--------------------------------------------------------------------------------
/frustator.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 |
3 | #------------------------------------------------------#
4 | # BASH FRUSTATOR ! #
5 | # Coded by Anubhav Kashyap #
6 | #~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ #
7 | # Github : github.com/anubhavanonymous #
8 | # Instagram : instagram.com/anubhavanonymous #
9 | #------------------------------------------------------#
10 | # If you came here to copy code #
11 | # then you are an Asshole #
12 | #------------------------------------------------------#
13 |
14 | import os
15 | import sys
16 | import fileinput
17 |
18 | N = '\033[0m'
19 | D = '\033[90m'
20 | W = '\033[1;37m'
21 | B = '\033[1;34m'
22 | R = '\033[1;31m'
23 | G = '\033[1;32m'
24 | Y = '\033[1;33m'
25 | C = '\033[1;36m'
26 |
27 | ask = G + '[' + W + '?' + G + '] '
28 | success = G + '[' + W + '√' + G + '] '
29 | error = R + '[' + W + '!' + R + ']'
30 |
31 | os.system("clear")
32 | banner = """
33 |
34 | {} █▄▄ ▄▀█ █▀ █░█ █▀▀ █▀█ █░█ █▀ ▀█▀ ▄▀█ ▀█▀ █▀█ █▀█
35 | {} █▄█ █▀█ ▄█ █▀█ █▀ █▀▄ █▄█ ▄█ ░█░ █▀█ ░█░ █▄█ █▀▄
36 | {}
37 | {} github.com/anubhavanonymous
38 | """.format(G,W,W,Y)
39 |
40 | banner2 = """
41 | {}[{}1{}]{} Encrypt {}[{}2{}]{} Decrypt
42 | """.format(G,W,G,W,G,W,G,W)
43 |
44 | print banner
45 | print banner2
46 |
47 | def decrypt():
48 | try:
49 | sc = raw_input(ask + W + "Script " + G + ">> " + W)
50 | f = open(sc,'r')
51 | filedata = f.read()
52 | f.close()
53 |
54 | newdata = filedata.replace("eval","echo")
55 |
56 | print("")
57 | out = raw_input(ask + W + "Output" + G + " >> " + W)
58 | f = open(out,'w')
59 | f.write(newdata)
60 | f.close()
61 |
62 | os.system("touch tes.sh")
63 | os.system("bash " + out + " > tes.sh")
64 | os.remove(out)
65 | os.system("mv -f tes.sh " + out)
66 | print("")
67 | print (success + "Done..")
68 |
69 | except KeyboardInterrupt:
70 | print("")
71 | print (error + " Stopped !")
72 | except IOError:
73 | print("")
74 | print (error + " File Not Found !")
75 |
76 | def encrypt():
77 | try:
78 | script = raw_input(ask + W + "Script " + G + ">> " + W)
79 | print("")
80 | output = raw_input(ask + W + "Output " + G + ">> " + W)
81 | os.system("bash-obfuscate " + script + " -o " + output )
82 | print("")
83 | print (success + "Done..")
84 | except KeyboardInterrupt:
85 | print("")
86 | print (error + " Stopped !")
87 | except IOError:
88 | print("")
89 | print (error + " File Not Found !")
90 |
91 |
92 | fuck = raw_input(Y + " ✯ " + W + "Select Option" + G + " ⋙⋙⋙ ")
93 | print("")
94 | if fuck == "1" or fuck == "01":
95 | encrypt()
96 | elif fuck == "2" or fuck == "02":
97 | decrypt()
98 | else:
99 | print (error + " Wrong input")
100 | print("")
101 |
--------------------------------------------------------------------------------
/logo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/anubhavanonymous/Bash_Frustator/48c9dde86b63264aaaa6860ad88fa5421a75b9d8/logo.jpg
--------------------------------------------------------------------------------