Tuesday, October 30, 2012

Mission impossible: to install BeEF on a VPS with only 128Mb of RAM

Today's guest post contributed by Matteo Campofiorito:

Several weeks ago I received a free VPS from ChunkHost, my goal was to install an instance of BeEF but my VPS has limited resources. Is it even possible? Here is my VPS configuration:
  • OS: Ubuntu 12.04.1 LTS (Linux 3.2.0-29 x86_64)
  • RAM: 128 MB
  • storage: 3GB
At first, everything went fine following BeEF's installation instruction on GitHub. But, when I executed "bundle install," I received an error installing "eventmachine." I googled around for a solution and realized that my problem was the limited RAM. With only 128MB, g++ fails miserably when it tries to compile eventmachine.

But, extra RAM costs money, so I found a workaround: create a swap file of 512MB. I used "dd" to create the file (here is a good howto about swap file creation), then I activated it and added to my fstab. Then, bundle install succeeded, no error received!

This was the only problem I had with BeEF installation. Everything else went fine, and the program runs smoothly.

I hooked several browsers (2 Firefox, 1 Internet Explorer 9 and one Chrome instance), and there is  no slowness at all. The web UI feels responsive and so does the VPS. Here are some screenshots of the top command:

Before BeEF

After BeEF

During Hooking
I hope this helps you in your endeavors!

About Matteo:
Matteo is an open source addicted, security enthusiast and father of an awesome daughter. He works for one of the most important tech web sites in Italy, and in his spare time he writes his rambling thoughts on www.bufferoverflow.it You can reach him on Twitter as @matteoca


  1. The blog or and best that is extremely useful to keep I can share the ideas
    of the future as this is really what I was looking for, I am very comfortable and pleased to come here. Thank you very much.
    tanki online | 2048 game |
    tanki online game

  2. This blog is so nice to me. I will continue to come here again and again. Visit my link as well. Good luck
    http://www.jualobataborsiherbal.com/ obat aborsi
    http://caramenggugurkankandungan.info/ cara menggugurkan kandungan
    http://www.jualobataborsiherbal.com/cara-menggugurkan-kandungan/ cara menggugurkan kandungan
    http://obataborsi59.com/ obat aborsi
    http://obataborsi59.com/cara-menggugurkan-kandungan-dengan-cepat-dan-aman/ cara menggugurkan kandungan
    http://obattelatdatangbulan.info/ obat telat datang bulan
    http://klinikobataborsi.com/ jual obat aborsi
    http://jualobatpenggugurkandungan.net/ obat penggugur kandungan
    http://tandatandakehamilan.net/ tanda tanda kehamilan
    http://tandatandakehamilan.net/cara-cepat-dan-selamat-menggugurkan-kandungan/ cara menggugurkan kandungan

  3. http://aborsi-tuntas.com/

  4. All the best blogs that is very useful for keeping me share the ideas of the future as well this is really what I was looking for, and I am very happy to come here. Thank you very much
    animal jam codes | five nights at freddy's 4 | hotmail login

  5. This is great, That's a great website, it really is what I was looking for, thank you for sharing!
    ymail login | ymail sign in |hotmail sign up |hotmail login

  6. http://klinikfarma.com/

  7. The article you have shared here very good. This is really interesting information for me. Thanks for sharing!
    hotmail.com login |hotmail login |gmail login

  8. * Jual Obat Aborsi,,
    * Obat Aborsi,,
    * Obat Penggugur Kandungan,,
    * what I have read on this page is enough to make me satisfied can menik die this article thanks greetings *

  9. This blog is so nice to me. I will continue to come here again and again. Visit my link as well. Good luck
    Cara Menggugurkan Kandungan
    Obat Penggugur Kandungan
    Obat Aborsi
    Cara Menghitung Usia Kehamilan
    Obat Aborsi Ampuh
    Cara Menggugurkan Kandungan
    Obat Pelancar Haid
    Jual Obat Pelancar Haid
    for beginners like me need a lot of reading and searching for information on various blogs. and articles that you share a very nice and inspires me.

    Kami menjual Obat Aborsi Tuntas untuk usia 1 sampai 7 bulan, dimana Obat Penggugur Kandungan yang kami jual di jamin manjur tanpa kuret. Selain itu Obat Peluntur Janin ini sangatlah aman, jadi anda tidak perlu ragu lagi untuk order Obat Cytotec Asli di tempat kami. Untuk info lebih lanjut hubungi Call/Wa: 082279999433 || Bbm: DDB2E229.
    Selamat datang di website resmi kami: http://aborsituntas.net yang menyediakan obat aborsi tuntas kualitas terbaik dan sangat aman untuk digunakan sebagai Pengguguran Kandungan. Bagi anda yang ingin menggugurkan kandungan, kami sarankan untuk menggunakan Obat Aborsi aman yaitu Cytotec Misoprostol yang sangat ampuh untuk melunturkan janin.