Howto Squeeze Reaver Pro onto a CD

Discussion in 'Linux Based Operating Systems & Virtual Machines' started by scorpius, 16 Jul 2012.

  1. scorpius

    scorpius Well-Known Member

    Joined:
    12 Jul 2012
    Messages:
    27
    Likes Received:
    21
    Trophy Points:
    175
    The following commands will shrink ReaverPro resulting in a hybrid ISO, that can be burned to a 700MB CD, or written to a USB stick via dd (without the need for other tools).

    I've managed to get it down to 652MB, and more can be squeezed out. I know I'm not the first to try this, but I posted my technique in case others want to follow.

    Cut and paste these commands, especailly when in the chroot environment. Do not run as a script, for now. The apt-get lines, in particular, need to be pasted one by one, or some packages will remain.

    This took me a while to figure out, so I hope you guys enjoy it.

    Code:
    Select All
    mkdir iso R="/media/MacHD/Users/$USER/Downloads/Reaver Pro and Xiaopan OS/ReaverPro.iso" sudo mount -o loop "$R" iso sudo rsync --exclude=/casper/filesystem.squashfs -a iso/ dvd sudo unsquashfs iso/casper/filesystem.squashfs sudo umount iso sudo rmdir iso # Enter chroot sudo mount --bind /dev/ squashfs-root/dev sudo chroot squashfs-root # The following is typed in the chroot env: mount -t proc none /proc mount -t sysfs none /sys mount -t devpts none /dev/pts export HOME=/root export LC_ALL=C export PS1='\[\033[0;31m\]\u@\h$PWD\[\033[0m\]\[\033[0;36m\]\[\033[0m\] ' # Remove pkgs apt-get -y remove --purge openoffice* apt-get -y remove --purge ubuntu-docs evolution-common gcc-4.4 apt-get -y remove --purge linux-image-2.6.32-33-generic linux-headers-2.6.32-38 apt-get -y remove --purge gnome-games* f-spot* apt-get -y remove --purge hplip-data libgl1-mesa-dri humanity-icon-theme apt-get -y remove --purge vim-runtime app-install-data xulrunner-1.9.2 apt-get -y remove --purge language-pack-gnome-en-base rhythmbox ttf-unfonts-core aptitude clean apt-get -y autoremove # Exit chroot umount /proc umount /sys umount /dev/pts exit sudo umount squashfs-root/dev # sudo chroot squashfs-root dpkg-query -W --showformat='${Package} ${Version}\n' | sudo tee dvd/casper/filesystem.manifest sudo cp -a dvd/casper/filesystem.manifest dvd/casper/filesystem.manifest-desktop sudo sed -i '/ubiquity/d' dvd/casper/filesystem.manifest-desktop sudo sed -i '/casper/d' dvd/casper/filesystem.manifest-desktop sudo cp -a /usr/lib/syslinux/isolinux.bin dvd/isolinux/ sudo sed -i 's/vesamenu.c32/live/g' dvd/isolinux/isolinux.cfg sudo rm -f dvd/casper/filesystem.squashfs sudo mksquashfs squashfs-root dvd/casper/filesystem.squashfs #-comp xz printf $(sudo du -sx --block-size=1 squashfs-root | cut -f1) | sudo tee dvd/casper/filesystem.size cd dvd sudo rm md5sum.txt find -type f -print0 | sudo xargs -0 md5sum | grep -v isolinux/boot.cat | sudo tee md5sum.txt cd .. sudo mkisofs -J -R -l -f \ -V "Reaver Pro Hybrid CD" \ -o ReaverPro-Hybrid.iso \ -b isolinux/isolinux.bin \ -c isolinux/boot.cat \ -no-emul-boot \ -boot-load-size 4 \ -boot-info-table dvd/ sudo chown $USER ReaverPro-Hybrid.iso isohybrid ReaverPro-Hybrid.iso qemu ReaverPro-Hybrid.iso

     
    • Like Like x 8
  2. Mr. Penguin

    Mr. Penguin Administrator
    Staff Member Admin Moderator VIP

    Joined:
    18 May 2012
    Messages:
    3,086
    Likes Received:
    1,186
    Trophy Points:
    351
    Impressive work scorpius, thank you very much for your contribution. Looking to test this out soon and report back on the results.

    Thanks again :)
     
    • Dislike Dislike x 1
  3. scorpius

    scorpius Well-Known Member

    Joined:
    12 Jul 2012
    Messages:
    27
    Likes Received:
    21
    Trophy Points:
    175
    I'm glad you like it. I'm still tweaking, and just updated the commands. I now almost got it working as a script. Also, for an ultra small ISO I might try getting it to work with slitaz.
    --- Double Post Merged, 18 Jul 2012 ---
    Here's an update of all the changes I made:
    1. Removed the 30 second boot delay -- so now it boots faster and without a prompt.
    2. Removed the 3 second autologin dialog box.
    3. Fixed the "Could not apply stored configuration for monitors" popup notice.
    4. Made it a hybrid ISO (write to a USB stick via dd).
    5. Removed a bunch of unnecessary programs (boots faster and uses less RAM).
    6. The ISO is now only 565MB.
    I also discovered that you can run ReaverPro remotely -- just type in the IP address of the machine where it is running in your browser.
     

    Attached Files:

    • shrink-reaver.txt
      File size:
      2.8 KB
      Views:
      542
      MD5:
      c39c11633768100fe9671224dbc3b136
    • Like Like x 1
    • Crap Crap x 1
  4. extraweb1

    extraweb1 Well-Known Member

    Joined:
    31 May 2012
    Messages:
    11
    Likes Received:
    10
    Trophy Points:
    81
    It would be great to be able to have reaver pro on slitaz or as a tcz for tiny core we could add to xiopan or tinycore itself
     
    • Crap Crap x 1
  5. Mr. Penguin

    Mr. Penguin Administrator
    Staff Member Admin Moderator VIP

    Joined:
    18 May 2012
    Messages:
    3,086
    Likes Received:
    1,186
    Trophy Points:
    351
    That would be great for many inexperienced users. Not sure if it is possible. But we have Firefox in the new Xiaopan 0.4.3 thanks to hazz death so it maybe possible to compile a localhost version.

    Reaver Pro looks pretty but sucks and and is a big rip off. There are no performance benefit in using it.

    You are better off using inflator or command line Reaver :)


    Sent from my iPhone using Tapatalk
     
    • Like Like x 2
    • Dislike Dislike x 1
  6. aYaLa

    aYaLa Active Member

    Joined:
    26 Jul 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    31
    nice thread..
    need to try it..
     
    • Dislike Dislike x 1
    • Crap Crap x 1
  7. triniberry

    triniberry Active Member

    Joined:
    27 Jul 2012
    Messages:
    3
    Likes Received:
    1
    Trophy Points:
    35
    Very nice tutorial. Thanks for this.
     
    • Dislike Dislike x 1
  8. nrgd

    nrgd Active Member

    Joined:
    18 Jul 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    31
    Great work scorpius, could you share the already squeezed hybrid ISO? For those who do not have Linux environment at hand to do the squeezing themselves, it'd be nice to have one file to download and burn.
     
    • Friendly Friendly x 1
    • Wow Wow x 1
  9. extraweb1

    extraweb1 Well-Known Member

    Joined:
    31 May 2012
    Messages:
    11
    Likes Received:
    10
    Trophy Points:
    81
    I'm Trying to make it a tcz myself;the only benefit of the reaver pro over inflator is multiple network pentest automation , and also it being able to be on the better xiaopan os "based on tiny core" it will be small and i can put it on one of my pen testing drives and it not take up a lot of space
     
    • Like Like x 1
    • Dislike Dislike x 1
  10. scorpius

    scorpius Well-Known Member

    Joined:
    12 Jul 2012
    Messages:
    27
    Likes Received:
    21
    Trophy Points:
    175
    Thanks for the comments.

    I plan to share the CD as a torrent (I need to figure it out first). But I recently also made a slitaz version, which is only about 50MB!
     
    • Crap Crap x 1
  11. Najam Hashmi

    Najam Hashmi Active Member

    Joined:
    5 Sep 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    31
    Hi gentleman, i want that, small size which can fit in CD.. please upload it and give me link.
     
    • Crap Crap x 1
  12. scorpius

    scorpius Well-Known Member

    Joined:
    12 Jul 2012
    Messages:
    27
    Likes Received:
    21
    Trophy Points:
    175
    The 50MB slitaz version doesn't fully work, so that's why I never released it. I'm still trying to cut down the CD version to about 400MB, so that I can have a little space for another partition, which could also result in a persistent USB version.
     
    • Like Like x 1
    • Informative Informative x 1
    • Crap Crap x 1
  13. Najam Hashmi

    Najam Hashmi Active Member

    Joined:
    5 Sep 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    31
    ok
     
    • Crap Crap x 1
  14. Crackerz Wave

    Crackerz Wave The Dictator
    Staff Member Moderator VIP

    Joined:
    20 May 2012
    Messages:
    650
    Likes Received:
    128
    Trophy Points:
    141
    Oh man, I failed......................It destroy my ubuntu, need to reinstall ubuntu:(
    I want to rip this iso, and upload it at rapidshare so, people with low bandwith cannot download 1gb file:)
     
    • Crap Crap x 1
  15. robertmeiyudha

    Joined:
    13 Oct 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    6
    ok...i got it
     
    • WTF? WTF? x 1
  16. D1k0v

    D1k0v Active Member

    Joined:
    9 Mar 2013
    Messages:
    6
    Likes Received:
    3
    Trophy Points:
    40
    Hi
    Resised version of 436 MB from the original ReaverPro of 957 MB following and modifying the instructions of scorpius.

    The base keeps on being the original, Ubuntu 10.04 Lts (Lucid), Gnome 2.30.2, Kernel 2.6.32-38, user Reaver and user Tech.
    the user Reaver keeps on being the same of the original one, also without privileges.
    The password for Reaver and Tech is reaver

    In addition to the reduction of size also added macchanger and updated aircrack.

    The user Reaver keeps on using ambiance as agent of windows and colors, the user Tech now uses clearklook with ambiance color.

    New launchers in the menu of Tech pointing at a console and nautilus in root mode.

    Console of root or tech now they differ in the background color and the prompt.

    Wallpaper of Tech was changed.

    Ubiquity was fixed and now the distro is installable in hard disk.

    It is possible to use from Cd, virtual machine or Usb, supports persistent changes and hard disk installation.
    size: 436.8 MB (457.996.288 Bytes)
    md5sum: eec49cb2165e7e6c654f63a2c8a2596f
    download: http://www.putlocker.com/file/1641D6FBD7CE8FEE#sthash.eGB7dceb.dpuf

    user Tech shot:
    [​IMG]

    best regards.
     
    • Like Like x 3
    • Winner Winner x 1
    • Crap Crap x 1
  17. Crackerz Wave

    Crackerz Wave The Dictator
    Staff Member Moderator VIP

    Joined:
    20 May 2012
    Messages:
    650
    Likes Received:
    128
    Trophy Points:
    141
    D1k0v , what happen if i upgrade it to 12.10? and can we combine the reaver and tech? quite hard to change to other account
     
    • Get the Fuck Off Get the Fuck Off x 1
  18. Mr. Penguin

    Mr. Penguin Administrator
    Staff Member Admin Moderator VIP

    Joined:
    18 May 2012
    Messages:
    3,086
    Likes Received:
    1,186
    Trophy Points:
    351
    Try yourself crackers and report back :)


    Sent from my iPhone using Tapatalk
     
    • Get the Fuck Off Get the Fuck Off x 1
  19. D1k0v

    D1k0v Active Member

    Joined:
    9 Mar 2013
    Messages:
    6
    Likes Received:
    3
    Trophy Points:
    40
    hi
    yes crackers try yourself i dont have time rightnow, no files system were harmed during actual squeezing, apt-get and update manager work well and you can resqueezing the distri more times, if you want linux headers you can get from original.
    I advise you that update to 10.4 because it is LTS, better that 10.10.

    when you install in Hd you need to create another user, but after the installation the system start with reaver and no use the new user, i dont know why.
     
    • WTF? WTF? x 1
  20. Crackerz Wave

    Crackerz Wave The Dictator
    Staff Member Moderator VIP

    Joined:
    20 May 2012
    Messages:
    650
    Likes Received:
    128
    Trophy Points:
    141
    i actually want to try but my available disk space is 50mb
     
    • Crap Crap x 1
Loading...
  • About Us

    We are a community mixed with professionals and beginners with an interest in wireless security, auditing and pentesting. Feel free to check out and upload resources.


    You can also find us on: Twitter and Facebook

  • Donate to Us

    Did you find our forums useful? Feel free to donate Bitcoin to us using the form below. Those who donate the equivlent of $10 USD or more will be upgraded to VIP membership. Don't have Bitcoin? Use your credit card to GO VIP here. Don't want to fork out some coin? There are other ways to GO VIP. Bitcoin: 1LMTGSoTyJWXuy2mQkHfgMzD7ez74x1Z8K