Commit 0d3652b5 authored by g0t mi1k's avatar g0t mi1k

Switch helper-script

parent b6257783
webshells (1.2.1) kali-dev; urgency=medium
webshells (1.1+kali1) kali-dev; urgency=medium
* Add helper-script (Closes: 5521)
* Move PHP findsocket to its own folder
......@@ -13,6 +13,6 @@ webshells (1.1-0kali0) kali-dev; urgency=low
webshells (1.0-1kali0) kali; urgency=low
* Initial release
* Initial release
-- Devon Kearns <[email protected]> Mon, 28 Jan 2013 15:49:51 -0700
#!/bin/bash
#!/bin/sh
## Generate: awk -F ': ' '/^Description: / {print $2}' debian/control
description="Collection of webshells"
package="webshells"
location="/usr/share/${package}"
## Define command line arguments
banner="true"
output="true"
## Read command line arguments
while [[ $# -gt 0 ]]; do
opt="$1";
shift;
case "$opt" in
#"-h")
# banner="true" ;;
#"-v")
# output="true" ;;
"-q")
banner="false";
output="false";;
"-s")
banner="false";
output="false";;
esac
done
## Move to location
cd "${location}/"
## Feedback (-h)
[ "${banner}" == "true" ] \
&& echo "> ${package} ~ ${description}"
## List output (-v)
if [ "${output}" == "true" ]; then
if [ "$( which tree )" ]; then
tree -d -L 1 --prune --noreport "${location}"
else
echo "${location}"
#ls --color
find "${location}" -maxdepth 1 -mindepth 1 -type d \
| sort \
| sed -e 's/[^-][^\/]*\//-/g; s/^/ /; s/-/|/'
fi
fi
## Drop to shell (so to "move" with "cd")
[ "${OLDPWD}" != "${location}" ] \
&& eval "${SHELL}"
kali_treecd "/usr/share/webshells" "webshells"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment