Here’s a guide on compiling Firesheep for both Firefox 3.6.x. I will hopefully be posting a usage guide shortly. There is a way to build it for Firefox 4, but as of yet it is not functioning.
- Clone the git repository containing the firesheep plugin:
git clone https://github.com/codebutler/firesheep.git
- Install the following packages needed to build firesheep: autoconf libtool libpcap-dev libboost-all-dev libhal-dev xulrunner-1.9.2-dev
- Change to the firesheep directory
- Run
git submodule update --init
- To attempt to build the Firefox 4 port, run the following commands. You can skip these if you plan on using firefox 3.6.
git fetch origin firefox4 git checkout firefox4 git checkout master git merge firefox4
./autogen.sh
make
- The firesheep.xpi you just built will located in the build/ directory.
- Install in firefox
If you want to build a firefox 4 version under Backtrack 5, you will have to build xulrunner from source. I will not cover this, as it is fairly simple, but compiling takes forever! Better to build it under a recent version of kubuntu 🙂
Thank you for the installation instructions. I am having some difficulties when I attempt to step 7. I receive this error.
/code
Making all in mozpopen
make[1]: Entering directory `/root/firesheep/mozpopen’
mkdir -p ../xpi/platform/Linux_x86_64-gcc3/components
g++ -shared -fno-rtti -fPIC MozPopenModule.cpp unix/MozPopenProcess.cpp -g -O2 -I ../mozpopen -I ../mozpopen/unix -mtune=generic -m64 -fshort-wchar -I/usr/include/xulrunner-1.9.2.17 -I/usr/include/xulrunner-1.9.2.17/nspr -I/usr/include/nspr -L/usr/lib/xulrunner-devel-1.9.2.17/lib -lxpcomglue_s -lxul -lxpcom -lplds4 -lplc4 -lnspr4 -lpthread -ldl -o ../xpi/platform/Linux_x86_64-gcc3/components/MozPopen.so
MozPopenModule.cpp:24:33: error: mozilla/ModuleUtils.h: No such file or directory
MozPopenModule.cpp:32: error: expected constructor, destructor, or type conversion before ‘NS_DEFINE_NAMED_CID’
unix/MozPopenProcess.cpp:30: error: expected identifier before ‘__null’
unix/MozPopenProcess.cpp:30: error: expected ‘,’ or ‘…’ before ‘__null’
unix/MozPopenProcess.cpp:31: error: expected constructor, destructor, or type conversion before ‘nsrefcnt’
make[1]: *** [../xpi/platform/Linux_x86_64-gcc3/components/MozPopen.so] Error 1
make[1]: Leaving directory `/root/firesheep/mozpopen’
make: *** [all-recursive] Error 1
/code
I was wondering what I would need to do to rectify this situation.
Thank you for your help,
Steve
Initialized empty Git repository in /root/firesheep/.git/
error: The requested URL returned error: 403
whats the problem?
why not just clone from the online repo instead of making it yourself (since that seems to be what you are doing)
Hi… nice one, very good. I’ve got Problems to get Firefox 3.6 or 4 to install under Backtrack 5, can u give me a hand or explain how this works for you!?
@Nero
apt-get update
might do itapt-get install firefox
linux whoami…
[…]Soliloquy Blog » Build Firesheep for BackTrack 5[…]…
this is my error
root@bt:/firesheep# ./autogen.sh
autoreconf: Entering directory `.’
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal –force -I .
configure.ac:41: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
../../lib/autoconf/general.m4:1819: AC_CANONICAL_TARGET is expanded from…
configure.ac:41: the top level
autoreconf: configure.ac: tracing
configure.ac:41: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
../../lib/autoconf/general.m4:1819: AC_CANONICAL_TARGET is expanded from…
configure.ac:41: the top level
autoreconf: running: libtoolize –install –copy –force
libtoolize: putting auxiliary files in `.’.
libtoolize: copying file `./config.guess’
libtoolize: copying file `./config.sub’
libtoolize: copying file `./install-sh’
libtoolize: copying file `./ltmain.sh’
libtoolize: putting macros in `.’.
libtoolize: copying file `./libtool.m4′
libtoolize: You should add the contents of `./libtool.m4′ to `aclocal.m4′.
libtoolize: copying file `./ltoptions.m4′
libtoolize: You should add the contents of `./ltoptions.m4′ to `aclocal.m4′.
libtoolize: copying file `./ltsugar.m4′
libtoolize: You should add the contents of `./ltsugar.m4′ to `aclocal.m4′.
libtoolize: copying file `./ltversion.m4′
libtoolize: You should add the contents of `./ltversion.m4′ to `aclocal.m4′.
libtoolize: copying file `./lt~obsolete.m4′
libtoolize: You should add the contents of `./lt~obsolete.m4′ to `aclocal.m4′.
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])’ to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
configure.ac:41: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
../../lib/autoconf/general.m4:1819: AC_CANONICAL_TARGET is expanded from…
configure.ac:41: the top level
autoreconf: running: /usr/bin/autoconf –force
configure.ac:41: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
../../lib/autoconf/general.m4:1819: AC_CANONICAL_TARGET is expanded from…
configure.ac:41: the top level
autoreconf: configure.ac: not using Autoheader
autoreconf: running: automake –add-missing –copy –force-missing
configure.ac:41: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
../../lib/autoconf/general.m4:1819: AC_CANONICAL_TARGET is expanded from…
configure.ac:41: the top level
autoreconf: Leaving directory `.’
checking for clang… no
checking for gcc… gcc
checking whether the C compiler works… yes
checking for C compiler default output file name… a.out
checking for suffix of executables…
checking whether we are cross compiling… no
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for gcc option to accept ISO C89… none needed
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… /bin/mkdir -p
checking for gawk… gawk
checking whether make sets $(MAKE)… yes
checking for style of include used by make… GNU
checking dependency style of gcc… gcc3
checking build system type… i686-pc-linux-gnu
checking host system type… i686-pc-linux-gnu
checking for a sed that does not truncate output… /bin/sed
checking for grep that handles long lines and -e… /bin/grep
checking for egrep… /bin/grep -E
checking for fgrep… /bin/grep -F
checking for ld used by gcc… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… yes
checking for BSD- or MS-compatible name lister (nm)… /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface… BSD nm
checking whether ln -s works… yes
checking the maximum length of command line arguments… 1572864
checking whether the shell understands some XSI constructs… yes
checking whether the shell understands “+=”… yes
checking for /usr/bin/ld option to reload object files… -r
checking for objdump… objdump
checking how to recognize dependent libraries… pass_all
checking for ar… ar
checking for strip… strip
checking for ranlib… ranlib
checking command to parse /usr/bin/nm -B output from gcc object… ok
checking how to run the C preprocessor… gcc -E
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking for dlfcn.h… yes
checking for objdir… .libs
checking if gcc supports -fno-rtti -fno-exceptions… no
checking for gcc option to produce PIC… -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works… yes
checking if gcc static flag -static works… yes
checking if gcc supports -c -o file.o… yes
checking if gcc supports -c -o file.o… (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries… yes
checking whether -lc should be explicitly linked in… no
checking dynamic linker characteristics… GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
checking whether stripping libraries is possible… yes
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… yes
checking whether to build static libraries… yes
checking for clang++… no
checking for g++… g++
checking whether we are using the GNU C++ compiler… yes
checking whether g++ accepts -g… yes
checking dependency style of g++… gcc3
checking whether we are using the GNU C++ compiler… (cached) yes
checking whether g++ accepts -g… (cached) yes
checking dependency style of g++… (cached) gcc3
checking how to run the C++ preprocessor… g++ -E
checking for ld used by g++… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries… yes
checking for g++ option to produce PIC… -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works… yes
checking if g++ static flag -static works… yes
checking if g++ supports -c -o file.o… yes
checking if g++ supports -c -o file.o… (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries… yes
checking dynamic linker characteristics… GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
checking target system type… i686-pc-linux-gnu
checking for pcap-config… /usr/bin/pcap-config
checking for Boost headers version >= 0.0.0… no
configure: error: cannot find Boost headers version >= 0.0.0
root@bt:/firesheep# make
make: *** No targets specified and no makefile found. Stop.
root@bt:/firesheep#
what am i doing wrong? (running backtrack5 using firefox 3.6.1.1)
Its probably a bug with the latest version. Firesheep isn’t being kept up very well.
checking for Boost headers version >= 0.0.0… no
configure: error: cannot find Boost headers version >= 0.0.0
Need to apt-get install libboost-dev or whatever its called on backtrack
Firesheep should have it’s on dedicated GUI application for linux (Backtrack). A plugin for Firefox doesn’t do it for me.
Probably – but you can use something like ettercap to accomplish the same end. In fact, I would recommend ettercap over firesheep at this point.
http://code.google.com/p/subterfuge/
Check this out – I saw it at defcon