1
0
mirror of https://github.com/byReqz/blackmate.git synced 2024-11-23 11:44:56 +00:00

Add files via upload

This commit is contained in:
Anyon3 2016-07-25 09:15:16 +00:00 committed by GitHub
parent 619edf2981
commit 5c9fb50557
4 changed files with 305 additions and 62 deletions

4
BlackArch.directory Normal file
View File

@ -0,0 +1,4 @@
[Desktop Entry]
Name=BlackArch
Icon=blackarch-logo
Type=Directory

205
X-BlackArch.menu Normal file
View File

@ -0,0 +1,205 @@
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
"http://www.freedesktop.org/standards/menu-spec/menu-1.0.dtd">
<Menu>
<Name>Applications</Name>
<!-- BlackArch submenu -->
<Menu>
<Name>BlackArch</Name>
<Directory>BlackArch.directory</Directory>
<Include>
<Category>X-BlackArch</Category>
</Include>
<!-- Begin of Audit -->
<Menu>
<Name>Audit</Name>
<Directory>BlackArch-Audit.directory</Directory>
<Include>
<Category>X-BlackArch-Audit</Category>
</Include>
</Menu>
<!-- Begin of Automation -->
<Menu>
<Name>Automation</Name>
<Directory>BlackArch-Automation.directory</Directory>
<Include>
<Category>X-BlackArch-Automation</Category>
</Include>
</Menu>
<!-- Begin of Backdoor -->
<Menu>
<Name>Backdoor</Name>
<Directory>BlackArch-Backdoor.directory</Directory>
<Include>
<Category>X-BlackArch-Backdoor</Category>
</Include>
</Menu>
<!-- Begin of Binary -->
<Menu>
<Name>Binary</Name>
<Directory>BlackArch-Binary.directory</Directory>
<Include>
<Category>X-BlackArch-Binary</Category>
</Include>
</Menu>
<!-- Begin of Bluetooth -->
<Menu>
<Name>Bluetooth</Name>
<Directory>BlackArch-Bluetooth.directory</Directory>
<Include>
<Category>X-BlackArch-Bluetooth</Category>
</Include>
</Menu>
<!-- Begin of Cracker -->
<Menu>
<Name>Cracker</Name>
<Directory>BlackArch-Cracker.directory</Directory>
<Include>
<Category>X-BlackArch-Cracker</Category>
</Include>
</Menu>
<!-- Begin of Crypto -->
<Menu>
<Name>Crypto</Name>
<Directory>BlackArch-Crypto.directory</Directory>
<Include>
<Category>X-BlackArch-Crypto</Category>
</Include>
</Menu>
<!-- Begin of Defensive -->
<Menu>
<Name>Defensive</Name>
<Directory>BlackArch-Defensive.directory</Directory>
<Include>
<Category>X-BlackArch-Defensive</Category>
</Include>
</Menu>
<!-- Begin of Dos -->
<Menu>
<Name>Dos</Name>
<Directory>BlackArch-Dos.directory</Directory>
<Include>
<Category>X-BlackArch-Dos</Category>
</Include>
</Menu>
<!-- Begin of Exploitation -->
<Menu>
<Name>Exploitation</Name>
<Directory>BlackArch-Exploitation.directory</Directory>
<Include>
<Category>X-BlackArch-Exploitation</Category>
</Include>
</Menu>
<!-- Begin of Forensic -->
<Menu>
<Name>Forensic</Name>
<Directory>BlackArch-Forensic.directory</Directory>
<Include>
<Category>X-BlackArch-Forensic</Category>
</Include>
</Menu>
<!-- Begin of Honeypot -->
<Menu>
<Name>Honeypot</Name>
<Directory>BlackArch-Honeypot.directory</Directory>
<Include>
<Category>X-BlackArch-Honeypot</Category>
</Include>
</Menu>
<!-- Begin of Mobile -->
<Menu>
<Name>Mobile</Name>
<Directory>BlackArch-Mobile.directory</Directory>
<Include>
<Category>X-BlackArch-Mobile</Category>
</Include>
</Menu>
<!-- Begin of Networking -->
<Menu>
<Name>Networking</Name>
<Directory>BlackArch-Networking.directory</Directory>
<Include>
<Category>X-BlackArch-Networking</Category>
</Include>
</Menu>
<!-- Begin of Scanning -->
<Menu>
<Name>Scanning</Name>
<Directory>BlackArch-Scanning.directory</Directory>
<Include>
<Category>X-BlackArch-Scanning</Category>
</Include>
</Menu>
<!-- Begin of Sniffer -->
<Menu>
<Name>Sniffer</Name>
<Directory>BlackArch-Sniffer.directory</Directory>
<Include>
<Category>X-BlackArch-Sniffer</Category>
</Include>
</Menu>
<!-- Begin of Voip -->
<Menu>
<Name>Voip</Name>
<Directory>BlackArch-Voip.directory</Directory>
<Include>
<Category>X-BlackArch-Voip</Category>
</Include>
</Menu>
<!-- Begin of Webapp -->
<Menu>
<Name>Webapp</Name>
<Directory>BlackArch-Webapp.directory</Directory>
<Include>
<Category>X-BlackArch-Webapp</Category>
</Include>
</Menu>
<!-- Begin of Windows -->
<Menu>
<Name>Windows</Name>
<Directory>BlackArch-Windows.directory</Directory>
<Include>
<Category>X-BlackArch-Windows</Category>
</Include>
</Menu>
<!-- Begin of Wireless -->
<Menu>
<Name>Wireless</Name>
<Directory>BlackArch-Wireless.directory</Directory>
<Include>
<Category>X-BlackArch-Wireless</Category>
</Include>
</Menu>
<!-- Begin of Misc -->
<Menu>
<Name>Misc</Name>
<Directory>BlackArch-Misc.directory</Directory>
<Include>
<Category>X-BlackArch-Misc</Category>
</Include>
</Menu>
</Menu>
</Menu>

View File

@ -17,18 +17,29 @@ if [[ $EUID -ne 0 ]]; then
exit 1 exit 1
fi fi
#Check if blackmate is running for the first time echo "[*] Creating the new menu entry";
if [[ ! -f /usr/share/applications/BlackArch-Misc.directory ]]; then
echo "[*] Create the entry Misc"; #Clean any previous application entry and categorie entry
#Clean any previous ba-*.desktop
rm /usr/share/applications/ba-*.desktop 2> /dev/null || true rm /usr/share/applications/ba-*.desktop 2> /dev/null || true
rm /usr/share/desktop-directories/BlackArch*.directory 2> /dev/null || true
#Delete the entry Website and add the entry Misc #Update X.BlackArch.menu
rm /usr/share/desktop-directories/BlackArch-Websites.directory 2> /dev/null || true cp /usr/share/blackmate/X-BlackArch.menu /etc/xdg/menus/applications-merged/X-BlackArch.menu
cp /usr/share/blackmate/BlackArch-Misc.directory /usr/share/applications
fi #Copy the directory file BlackArch (Blackarch -> categorie -> tools...)
cp /usr/share/blackmate/BlackArch.directory /usr/share/desktop-directories/
#Generate the new categorie entry menu
for u in $( ls --color=auto /usr/share/blackmate/menu-i/ | sort ); do
c=`echo $u | sed 's/BlackArch-//' | sed 's/\.png//'`;
cat /usr/share/blackmate/dfdir | sed 's/^Name=.*/Name='$c'/' | sed 's/^Icon=.*/Icon=BlackArch-'$c'/' > /usr/share/desktop-directories/BlackArch-$c.directory
done
#Update the default icons of blackarch-menu by the blackmate one
cp /usr/share/blackmate/menu-i/* /usr/share/icons/hicolor/32x32/apps/ 2> /dev/null || true
#Download and generate the latest tools list #Download and generate the latest tools list
mkdir /usr/share/blackmate/tmp mkdir /usr/share/blackmate/tmp
@ -51,82 +62,101 @@ echo "[*] Generating the menu, please wait...";
for u in $( ls --color=auto /usr/share/blackmate/tmp/ | sort ); do for u in $( ls --color=auto /usr/share/blackmate/tmp/ | sort ); do
#Subcategorie #Subcategorie
subc=`cat /usr/share/blackmate/tmp/$u/desc | sed 's/blackarch//' | sed '/^\s*$/d' | sed -n '/%GROUPS%/{n;p}' | cut -d "-" -f 2`; subc=`cat /usr/share/blackmate/tmp/$u/desc | sed 's/blackarch//' | sed '/^\s*$/d' | sed -n '/%GROUPS%/{n;p}' | sed 's/-//'`;
#Check the group of the current tool, if empty, go to the next iteration
if [[ -z "$subc" ]]; then
continue 1;
fi
#Name of the tool #Name of the tool
tname=`cat /usr/share/blackmate/tmp/$u/desc | sed 's/blackarch//' | sed '/^\s*$/d' | sed -n '/%NAME%/{n;p}' | cut -d "-" -f 2`; tname=`cat /usr/share/blackmate/tmp/$u/desc | sed 's/blackarch//' | sed '/^\s*$/d' | sed -n '/%NAME%/{n;p}' | cut -d "-" -f 2`;
#Set categorie of the subcategorie tool branche #Set categorie of the subcategorie tool branche
if [[ $subc == 'reversing ' ]] || if [[ $subc == "code-audit" ]] || [[ $subc == 'decompiler' ]] || [[ $subc == 'disassembler' ]] || [[ $subc == 'reversing' ]]; then
[[ $subc == 'disassembler' ]] ||
[[ $subc == 'binary' ]] ||
[[ $subc == 'code-audit' ]] ||
[[ $subc == 'analysis' ]] ||
[[ $subc == 'debugger' ]] ||
[[ $subc == 'decompiler' ]]; then
namecat=`echo X-BlackArch-CodeAnalysis;`; namecat=`echo X-BlackArch-Audit;`;
elif [[ $subc == 'cracker' ]] || elif [[ $subc == 'automation' ]]; then
[[ $subc == 'crypto' ]]; then
namecat=`echo X-BlackArch-Cracking;`; namecat=`echo X-BlackArch-Automation;`;
elif [[ $subc == 'defensive' ]] || elif [[ $subc == 'backdoor' ]] || [[ $subc == 'keylogger' ]] || [[ $subc == 'malware' ]]; then
[[ $subc == 'honeypot' ]]; then
namecat=`echo X-BlackArch-Backdoor;`;
elif [[ $subc == 'binary' ]]; then
namecat=`echo X-BlackArch-Binary;`;
elif [[ $subc == 'bluetooth' ]]; then
namecat=`echo X-BlackArch-Bluetooth;`;
elif [[ $subc == 'cracker' ]]; then
namecat=`echo X-BlackArch-Cracker;`;
elif [[ $subc == 'crypto' ]]; then
namecat=`echo X-BlackArch-Crypto;`;
elif [[ $subc == 'defensive' ]]; then
namecat=`echo X-BlackArch-Defensive;`; namecat=`echo X-BlackArch-Defensive;`;
elif [[ $subc == 'exploitation' ]] || elif [[ $subc == 'dos' ]]; then
[[ $subc == 'automation' ]] ||
[[ $subc == 'dos' ]]; then namecat=`echo X-BlackArch-Dos;`;
elif [[ $subc == 'exploitation' ]] || [[ $subc == 'social' ]] || [[ $subc == 'spoof' ]] || [[ $subc == 'fuzzer' ]]; then
namecat=`echo X-BlackArch-Exploitation;`; namecat=`echo X-BlackArch-Exploitation;`;
elif [[ $subc == 'anti-forensic' ]] || elif [[ $subc == 'forensic' ]] || [[ $subc == "anti-forensic" ]]; then
[[ $subc == 'unpacker' ]] ||
[[ $subc == 'forensic' ]] ||
[[ $subc == 'packer' ]]; then
namecat=`echo X-BlackArch-Forensic;`; namecat=`echo X-BlackArch-Forensic;`;
elif [[ $subc == 'malware' ]] || elif [[ $subc == 'honeypot' ]]; then
[[ $subc == 'keylogger' ]] ||
[[ $subc == 'backdoor' ]]; then
namecat=`echo X-BlackArch-Malware;`; namecat=`echo X-BlackArch-Honeypot;`;
elif [[ $subc == 'networking' ]] || elif [[ $subc == 'mobile' ]]; then
[[ $subc == 'proxy' ]] ||
[[ $subc == 'spoofer' ]] || namecat=`echo X-BlackArch-Mobile;`;
[[ $subc == 'tunnel' ]] ||
[[ $subc == 'spoof' ]]; then elif [[ $subc == 'networking' ]] || [[ $subc == 'fingerprint' ]] || [[ $subc == 'firmware' ]] || [[ $subc == 'tunnel' ]] ; then
namecat=`echo X-BlackArch-Networking;`; namecat=`echo X-BlackArch-Networking;`;
elif [[ $subc == 'bluetooth' ]] || elif [[ $subc == 'scanner' ]] || [[ $subc == 'recon' ]] ; then
[[ $subc == 'nfc' ]] ||
[[ $subc == 'wireless' ]]; then
namecat=`echo X-BlackArch-Wireless;`;
elif [[ $subc == 'voip' ]] ||
[[ $subc == 'mobile' ]]; then
namecat=`echo X-BlackArch-Telephony;`;
elif [[ $subc == 'scanner' ]] ||
[[ $subc == 'fuzzer' ]] ||
[[ $subc == 'fingerprint' ]] ||
[[ $subc == 'recon' ]]; then
namecat=`echo X-BlackArch-Scanning;`; namecat=`echo X-BlackArch-Scanning;`;
elif [[ $subc == 'sniffer' ]]; then elif [[ $subc == 'sniffer' ]]; then
namecat=`echo X-BlackArch-Sniffing;`; namecat=`echo X-BlackArch-Sniffer;`;
elif [[ $subc == 'voip' ]]; then
namecat=`echo X-BlackArch-Voip;`;
elif [[ $subc == 'webapp' ]]; then
namecat=`echo X-BlackArch-Webapp;`;
elif [[ $subc == 'windows' ]]; then
namecat=`echo X-BlackArch-Windows;`;
elif [[ $subc == 'wireless' ]]; then
namecat=`echo X-BlackArch-Wireless;`;
else else
namecat=`echo X-BlackArch-Misc;`; namecat=`echo X-BlackArch-Misc;`;
fi fi
#For each tools of the target categorie #For each tools of the target categorie

4
dfdir Normal file
View File

@ -0,0 +1,4 @@
[Desktop Entry]
Name=
Icon=
Type=Directory