EvilZone
Hacking and Security => Beginner's Corner => : Avengers October 27, 2015, 02:41:42 AM
-
So I'm trying to learn how to use hamster in Kali 1.1, but there's a small problem. The program relies on ferret and anytime I specify my network interface I get the below error:
execle(ferret): No such file or directory
I've tried googling around but I've yet to see a clear fix, does anyone know what I need to do?
Thanks in advanced.
-
Have you looked to see the file that it says isnt there is actually there? or miss named? I mean it is telling you the exact error. Meaning look for the file.
-
I did look, and the file isn't there. But when I try to simply copy the ferret script over it still doesn't recognize it.
-
Can you copy/paste everything from your console?
-
Don't really know about hamsters and ferrets(except that both are animals), but this:
I did look, and the file isn't there. But when I try to simply copy the ferret script over it still doesn't recognize it.
You copy it to where? Is it in same folder with the program you're trying yo execute? If so, have you made sure it has right permission to be executed? Maybe you could add it to your "path" and test if it works then.
You are saying script, but if it happends to be binary file are you sure it ain't architecture issue? If you downloaded ready build binary somewhere is it right kind for your system?
Most likely wisest thing to do would be to leave these tools alone for now and learn some basics of Linux. Even if your issues would not have anything to do with stuff I mentioned, the fact you could not provide more info in your starting post gives quit strong impression of you lacking knowledge in basic things. Just my opinion/guess.
-
This may provide an accurate description of the problem:
https://bugs.kali.org/print_bug_page.php?bug_id=184
The page says the bug is fixed, however I am obviously still experiencing it. I have updated anything and everything with apt-get update and apt-get upgrade
-
Okay I looked into it quickly because I got curious what's the deal here. I encountered same problem as you after installing hamster-sidejack and ferret-sidejack packets from repositories(I used nexus7+nethunter).
Here is quick workaround I made for it to work and some steps of what I made to "solve" the issue. But still consider what I said in end of my previous post.
What I did first:
ls -la /usr/bin/ | grep 'ferret\|hamster'
Output:
-rwxr-xr-x. 1 root root 279164 Oct 3 2013 ferret
lrwxrwxrwx. 1 root root 33 Jan 15 2013 hamster -> ../share/hamster-sidejack/hamster
So it seems that ferret exists in /usr/bin and hamster is symlinked from "/usr/share/hamster-sidejack/". After some testing I figured that for some reason it seemed that you had to be in same directory with ferret even if it's in your "PATH" when you run the hamster. Maybe "execle()" function works bit in same manner as doing "./ferret" so it tries to execute file from your cwd instead of just calling the ferret or something, idk.
So next steps:
cd /usr/share/hamster-sidejack/
cp /usr/bin/ferret .
chmod 755 ferret
hamster
Now when running hamster inside "/usr/share/hamster-sidejack/" everything seems to work. Like I said it's more a workaround than exact fix. Basically you could just cd to /usr/bin/ but it'a not really good solution as ferret seems to save .pcap files in your current working dir. To run hamster from anywhere you could just make some small script like this:
#!/bin/bash
cd /usr/share/hamster-sidejack/
hamster
Save it as "call_hamster" or anything you want and move it to /usr/bin/(With right permissions).
-
Thanks a ton for looking into this for me. I have started learning a bit about linux and I'm working through the advanced pentesting course on cybrary.it. I've completed the basic course but obviously a bunch of videos isn't going to make me an expert so I'm trying to get as much practice in the material as possible. This is one of the few things I actually enjoy learning about.