<s>
Obash	B-Device
is	O
a	O
bash	B-Operating_System
script	I-Operating_System
obfuscator	O
written	O
in	O
the	O
C	B-Language
programming	I-Language
language	I-Language
.	O
</s>
<s>
obash	B-Device
encodes	O
and	O
encrypts	O
bash	B-Operating_System
shell	I-Operating_System
scripts	O
into	O
executable	B-Application
binaries	I-Application
much	O
like	O
shc	B-Device
,	O
the	O
project	O
that	O
inspired	O
it	O
,	O
but	O
uses	O
AES-256	B-Algorithm
encryption	O
and	O
the	O
key	O
and	O
initialization	O
vector	O
are	O
retrieved	O
from	O
the	O
hardware	O
instead	O
of	O
being	O
hard	O
coded	O
into	O
the	O
binary	O
itself	O
.	O
</s>
<s>
The	O
obash	B-Device
project	O
was	O
started	O
to	O
address	O
some	O
of	O
the	O
issues	O
that	O
affect	O
shc	B-Device
,	O
the	O
main	O
one	O
being	O
able	O
to	O
see	O
the	O
original	O
shell	O
script	O
source	O
by	O
simply	O
issuing	O
ps	O
-ef	O
.	O
</s>
<s>
Although	O
the	O
objectives	O
are	O
the	O
same	O
,	O
obash	B-Device
shares	O
no	O
code	O
with	O
shc	B-Device
and	O
was	O
built	O
from	O
scratch	O
from	O
the	O
ground	O
up	O
,	O
any	O
code	O
similarities	O
are	O
purely	O
accidental	O
and	O
dictated	O
by	O
the	O
shared	O
objectives	O
.	O
</s>
<s>
Obash	B-Device
is	O
still	O
a	O
work	O
in	O
progress	O
but	O
the	O
master	O
branch	O
on	O
GitHub	O
generally	O
has	O
usable	O
sources	O
while	O
the	O
testing	O
branch	O
may	O
be	O
in	O
a	O
transition	O
state	O
at	O
any	O
given	O
time	O
.	O
</s>
<s>
Obash	B-Device
takes	O
the	O
input	O
script	O
and	O
AES-256	B-Algorithm
encrypts	O
it	O
,	O
and	O
also	O
base64	O
encodes	O
the	O
AES	B-Algorithm
ciphertext	O
so	O
that	O
it	O
can	O
be	O
used	O
to	O
declare	O
an	O
unsigned	O
char	O
array	O
.	O
</s>
<s>
It	O
then	O
produces	O
an	O
intermediate	O
C	B-Language
file	O
which	O
is	O
basically	O
the	O
interpreter	O
(	O
see	O
interpreter.c	O
)	O
,	O
functions	O
,	O
text	O
array	O
containing	O
the	O
ciphertext	O
,	O
the	O
optional	O
key	O
and	O
IV	O
for	O
reusable	O
binaries	B-Application
(	O
not	O
bound	O
to	O
the	O
hardware	O
)	O
and	O
the	O
main	O
.	O
</s>
<s>
The	O
intermediate	O
C	B-Language
file	O
is	O
then	O
compiled	O
into	O
an	O
executable	B-Application
.	O
</s>
<s>
The	O
intermediate	O
C	B-Language
file	O
is	O
built	O
in	O
the	O
following	O
manner	O
(	O
see	O
mk_sh_c	O
function	O
in	O
functions.c	O
)	O
:	O
</s>
<s>
See	O
recreate_interpreter_header	O
script	O
for	O
details	O
on	O
how	O
interpreter.h	O
is	O
created	O
from	O
interpreter.c.	O
</s>
<s>
In	O
the	O
code	O
there	O
is	O
a	O
comment	O
suggesting	O
where	O
this	O
should	O
be	O
done	O
(	O
see	O
makekey	O
and	O
makeiv	O
functions	O
in	O
functions.c	O
)	O
:	O
each	O
and	O
every	O
one	O
of	O
you	O
using	O
obash	B-Device
is	O
encouraged	O
to	O
do	O
so	O
or	O
it	O
would	O
be	O
fairly	O
easy	O
to	O
extract	O
the	O
script	O
source	O
from	O
the	O
obfuscated	O
binary	O
..	O
</s>
