2020-02-23 13:14:34 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=http://dirb.sourceforge.net/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Web Directory Fuzzer."
|
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
|
|
|
TERMUX_PKG_MAINTAINER="Rabby Sheikh @xploitednoob"
|
|
|
|
TERMUX_PKG_VERSION=2.22
|
2020-08-07 16:30:37 +02:00
|
|
|
TERMUX_PKG_REVISION=1
|
2020-02-23 13:14:34 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://sourceforge.net/projects/dirb/files/dirb/${TERMUX_PKG_VERSION}/dirb${TERMUX_PKG_VERSION/./}.tar.gz
|
|
|
|
TERMUX_PKG_SHA256=f3748ade231ca211a01acbec31cc6a3b576f6c56c906d73329d7dbb79f60fc2c
|
|
|
|
TERMUX_PKG_DEPENDS="libcurl"
|
|
|
|
|
2020-07-16 23:58:48 +02:00
|
|
|
termux_step_post_get_source() {
|
2020-02-23 13:14:34 +01:00
|
|
|
# dirb222.tar.gz has directory permission problem
|
|
|
|
chmod +x -R "$TERMUX_PKG_SRCDIR"
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_post_make_install() {
|
|
|
|
mkdir -p "$TERMUX_PREFIX"/share/dirb
|
|
|
|
cp -rf "$TERMUX_PKG_SRCDIR"/wordlists "$TERMUX_PREFIX"/share/dirb/wordlists
|
|
|
|
find "$TERMUX_PREFIX"/share/dirb/wordlists -type f | xargs chmod 600
|
2020-08-07 16:30:37 +02:00
|
|
|
mv -f "$TERMUX_PREFIX"/bin/gendict "$TERMUX_PREFIX"/bin/dirb-gendict
|
2020-02-23 13:14:34 +01:00
|
|
|
}
|