Skip to content

A bash command line tool for generating bash code that represents an obfuscated version of a password

License

Notifications You must be signed in to change notification settings

ndrscodes/bash-obfucscator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

bash-obfucscator

A command line tool for generating bash code that represents an obfuscated version of any text passed as the script's parameter.

Usage

The script can be invoked by passing the password directly as an argument. Multible functions can be created by passing multible passwords to the script. if you pass the -r/--readable flag as the first parameter, the semicolons will be replaced by newline characters so you can see what is actually happening in the generated code. The output is directly sent to stdout, from which it can be redirected into a file for easier use.

Please note that this only generates the function itself with a random name. The function needs to be invoked manually by copying its name.

Example

here is an example of the code generated by the script

$ echo $(./bash_password_generator.sh --readable 'foo bar' foobar foo bar)
function ZVSfmUgZqCRhQ {
	local myVirLzcAlsVM=""
	myVirLzcAlsVM+="$(printf "\x$(printf %x $((408>>2)))")"
	myVirLzcAlsVM+="$(printf "\x$(printf %x $((444>>2)))")"
	myVirLzcAlsVM+="$(printf "\x$(printf %x $((444>>2)))")"
	myVirLzcAlsVM+="$(printf "\x$(printf %x $((128>>2)))")"
	myVirLzcAlsVM+="$(printf "\x$(printf %x $((392>>2)))")"
	myVirLzcAlsVM+="$(printf "\x$(printf %x $((388>>2)))")"
	myVirLzcAlsVM+="$(printf "\x$(printf %x $((456>>2)))")"
	echo $myVirLzcAlsVM
}
function VRQROhghbplgb {
	local vopnuVDeLBGdu=""
	vopnuVDeLBGdu+="$(printf "\x$(printf %x $((408>>2)))")"
	vopnuVDeLBGdu+="$(printf "\x$(printf %x $((444>>2)))")"
	vopnuVDeLBGdu+="$(printf "\x$(printf %x $((444>>2)))")"
	vopnuVDeLBGdu+="$(printf "\x$(printf %x $((392>>2)))")"
	vopnuVDeLBGdu+="$(printf "\x$(printf %x $((388>>2)))")"
	vopnuVDeLBGdu+="$(printf "\x$(printf %x $((456>>2)))")"
	echo $vopnuVDeLBGdu
}
function dPTjTPTDcrEEr {
	local wrcWxWALDtvfA=""
	wrcWxWALDtvfA+="$(printf "\x$(printf %x $((408>>2)))")"
	wrcWxWALDtvfA+="$(printf "\x$(printf %x $((444>>2)))")"
	wrcWxWALDtvfA+="$(printf "\x$(printf %x $((444>>2)))")"
	echo $wrcWxWALDtvfA
}
function wRGYrfGnfljbx {
	local fmjnuZXzPVMds=""
	fmjnuZXzPVMds+="$(printf "\x$(printf %x $((392>>2)))")"
	fmjnuZXzPVMds+="$(printf "\x$(printf %x $((388>>2)))")"
	fmjnuZXzPVMds+="$(printf "\x$(printf %x $((456>>2)))")"
	echo $fmjnuZXzPVMds
}

or (using the compressed form (by not passing the -r/--readable flag)):

$ echo $(./bash_password_generator.sh 'foo bar' foobar foo bar)
function kOWgeXKJCBqLO { local xTcVFjSfaQSyC=""; xTcVFjSfaQSyC+="$(printf "\x$(printf %x $((408>>2)))")"; xTcVFjSfaQSyC+="$(printf "\x$(printf %x $((444>>2)))")"; xTcVFjSfaQSyC+="$(printf "\x$(printf %x $((444>>2)))")"; xTcVFjSfaQSyC+="$(printf "\x$(printf %x $((128>>2)))")"; xTcVFjSfaQSyC+="$(printf "\x$(printf %x $((392>>2)))")"; xTcVFjSfaQSyC+="$(printf "\x$(printf %x $((388>>2)))")"; xTcVFjSfaQSyC+="$(printf "\x$(printf %x $((456>>2)))")"; echo $xTcVFjSfaQSyC; }
function QvGcvteGNxjdv { local FbCbEWhBHGCeb=""; FbCbEWhBHGCeb+="$(printf "\x$(printf %x $((408>>2)))")"; FbCbEWhBHGCeb+="$(printf "\x$(printf %x $((444>>2)))")"; FbCbEWhBHGCeb+="$(printf "\x$(printf %x $((444>>2)))")"; FbCbEWhBHGCeb+="$(printf "\x$(printf %x $((392>>2)))")"; FbCbEWhBHGCeb+="$(printf "\x$(printf %x $((388>>2)))")"; FbCbEWhBHGCeb+="$(printf "\x$(printf %x $((456>>2)))")"; echo $FbCbEWhBHGCeb; }
function RVxsxwqaSYGmz { local HPVDsJnhOrvzv=""; HPVDsJnhOrvzv+="$(printf "\x$(printf %x $((408>>2)))")"; HPVDsJnhOrvzv+="$(printf "\x$(printf %x $((444>>2)))")"; HPVDsJnhOrvzv+="$(printf "\x$(printf %x $((444>>2)))")"; echo $HPVDsJnhOrvzv; }
function gpsSBzYSAumpr { local TqwGzEKHkfXwq=""; TqwGzEKHkfXwq+="$(printf "\x$(printf %x $((392>>2)))")"; TqwGzEKHkfXwq+="$(printf "\x$(printf %x $((388>>2)))")"; TqwGzEKHkfXwq+="$(printf "\x$(printf %x $((456>>2)))")"; echo $TqwGzEKHkfXwq; }

License

About

A bash command line tool for generating bash code that represents an obfuscated version of a password

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages