Differences

This shows you the differences between two versions of the page.

Link to this comparison view

build-backbox-package [2015/11/04 15:09]
ostendali created
build-backbox-package [2015/11/11 13:05] (current)
tmap
Line 1: Line 1:
 === Introduction to build BackBox package === === Introduction to build BackBox package ===
  
-Before ​to start fast reading ​to Modifying BackBox packages is needed.+Before ​starting package building, ​quick reading ​of "Modifying BackBox packages" ​is needed.
  
-Here the steps needed to prepare ​the BackBox.+Here the steps needed to prepare BackBox.
  
-Enable the repository ​setting ​the dependencies:​+Enable the repository ​and install ​the dependencies:​
  
  backbox@backbox:​~$ sudo -s  backbox@backbox:​~$ sudo -s
Line 14: Line 14:
 We will take NetCommander as example to work on, a useful python tool for arp spoofing attacks. We will take NetCommander as example to work on, a useful python tool for arp spoofing attacks.
  
-The first step is to download the tar.gz archive from official site and unpack it on local drive:+The first step is to download the tar.gz archive from the official site and unpack it on local drive:
  
  backbox@backbox:​~$ tar xfz backbox-NetCommander-b690fb3.tar.gz  backbox@backbox:​~$ tar xfz backbox-NetCommander-b690fb3.tar.gz
Line 26: Line 26:
  backbox@backbox:​~$ rm netcmd-1.2/​.gitignore  backbox@backbox:​~$ rm netcmd-1.2/​.gitignore
  
-Regenerate the archive paying attention to name structure:<​packetname>​_<​version>​.orig.tar.gz+Regenerate the archive ​by paying attention to the standard ​name structure:<​packetname>​_<​version>​.orig.tar.gz
  
  backbox@backbox:​~$ tar cfz netcmd_1.2.orig.tar.gz netcmd-1.2  backbox@backbox:​~$ tar cfz netcmd_1.2.orig.tar.gz netcmd-1.2
  
-Now an example ​packet ​is needed, from this packet ​it’s possible to copy the "​debian"​ directory to be inserted in our folder. To ease the process, in this example, we will download the source code of netcmd and will analyze every single file.+Now an example ​package ​is needed, from this package ​it’s possible to copy the "​debian"​ directory to be inserted in our folder. To make it easier, we will download the source code of netcmd and will analyze every single file.
  
  backbox@backbox:/​tmp$ apt-get source netcmd  backbox@backbox:/​tmp$ apt-get source netcmd
Line 37: Line 37:
  backbox@backbox:​~/​netcmd-1.2$ cd debian  backbox@backbox:​~/​netcmd-1.2$ cd debian
  
- totale ​40+ total 40
  drwxr-xr-x 2 backbox backbox 4096 2011-05-13 14:53 .  drwxr-xr-x 2 backbox backbox 4096 2011-05-13 14:53 .
  drwxr-xr-x 3 backbox backbox 4096 2011-05-13 14:53 ..  drwxr-xr-x 3 backbox backbox 4096 2011-05-13 14:53 ..
Line 49: Line 49:
  -rwxr-xr-x 1 backbox backbox ​ 442 2011-05-13 14:53 rules  -rwxr-xr-x 1 backbox backbox ​ 442 2011-05-13 14:53 rules
  
-The backbox-netcmd.desktop file is the menu file, to modify the contents ​of this file it will need to be renamed.+The backbox-netcmd.desktop file is the menu file, to modify the content ​of this file it needs to be renamed.
  
  backbox@backbox:​~/​netcmd-1.2/​debian/​$ mv backbox-netcmd.desktop backbox-name-of-packet.desktop  backbox@backbox:​~/​netcmd-1.2/​debian/​$ mv backbox-netcmd.desktop backbox-name-of-packet.desktop
Line 61: Line 61:
  Categories=BackBox-PrivilegeEscalation-Spoofing;​  Categories=BackBox-PrivilegeEscalation-Spoofing;​
  
-The changelog file contains ​informations ​used by Launchpad to create the packet, more in details it contains the version number and your name.+The changelog file contains ​information ​used by Launchpad to create the package, more in details it contains the version number and your name.
  
 Pay close attention to the first row: Pay close attention to the first row:
Line 69: Line 69:
 The text in brackets must keep the structure <​version>​-<​revision>,​ the following part is useful for updating packet without modifying the version number. The text in brackets must keep the structure <​version>​-<​revision>,​ the following part is useful for updating packet without modifying the version number.
  
-The control file, on the other hand, contains other useful informations like: packet ​name, description, ​dependences, etc. Be careful in modifying this file:+The control file, on the other hand, contains other useful informations like: package ​name, description, ​dependencies, etc. Be careful in modifying this file:
  
  Source: netcmd  Source: netcmd
Line 85: Line 85:
  NetCommander - An easy to use arp spoofing tool.  NetCommander - An easy to use arp spoofing tool.
  
-The install and links files contains, respectively,​ info on correct program installation system directory and symbolic links:+The install and links files contain, respectively,​ info on correct program installation system directory and symbolic links:
  
  backbox@backbox:/​tmp$ cat netcmd-1.2/​debian/​install  backbox@backbox:/​tmp$ cat netcmd-1.2/​debian/​install
Line 101: Line 101:
 The author name who built the package can be inserted in copyright file. The author name who built the package can be inserted in copyright file.
  
-Before creating the new debian ​packet, check again if all files have been modified with the correct ​informations.+Before creating the new debian ​package, check again if all files have been modified with the correct ​information.
  
-Once we are ready we can build the packet ​as follow:+Once we are ready we can build the package ​as follow:
  
  backbox@backbox:​~$ cd netcmd-1.2  backbox@backbox:​~$ cd netcmd-1.2