maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Yet another MITM attack script (Yamas-ARM) (https://talk.maemo.org/showthread.php?t=73988)

Unhuman 2011-06-24 18:13

Re: [Announce] Yet another MITM attack script (Yamas-ARM)
 
From I got from comaX today is that the script should be completely functional with ash now ( so no need for bash ). However when I run it with ash I get errors in the new dependency part of the script:
ash: unknown operand

and gives a false positive for missing dependencies (no such thing happens when run as bash)

Moreover, after using chmod +x on it the script still returns permission denied when run as ./mitm_pcsci3nce.sh.

I will try putting the script in /usr/bin now and running it directly and see what happens.


EDIT:

This works. Script can be started after chmod +x in /usr/bin by simply issuing mitm_pcsci3nce.sh in terminal. However, it still returns:
ash: unknown operand
and claims I have unmet dependencies (despite all showing success)

EDIT 2:

So until figuring out why this happens with ash, bash will still be required. ( first line of the script should link to /bin/bash, not bin/ash)

comaX 2011-06-24 18:34

Re: [Announce] Yet another MITM attack script (Yamas-ARM)
 
Quote:

Originally Posted by Chrome (Post 1038270)
Good news, if you need a tester for the new scripts I'll gladly help.

That's noted, thanks !

I must warn you guys though : I'm moving out this week, so I should be pretty busy, and when in my new apartment, I might not have internet for some time :s (or Edge connection from mobile phone... Yepee !)
I'll kindly ask the neighbors, but I don't think they'll just let me connect to their network like that.

#####

Quote:

Originally Posted by Unhuman (Post 1038279)
From I got from comaX today is that the script should be completely functional with ash now [...]
So until figuring out why this happens with ash, bash will still be required. ( first line of the script should link to /bin/bash, not bin/ash)

Yup, yup, yup ! We'll try some more, but if it's too much of a hassle, we'll stick to bash. After all it's not heavy or anything, and I believe is the most spread version of sh !

If you guys find a way to use ash though, we'll be happy bunnies =)

Unhuman 2011-06-25 08:55

Re: [Announce] Yet another MITM attack script (Yamas-ARM)
 
New version with dependency check added - test if it works .

It still requires bash to be run, however it can now be run as
mitm_pcsci3nce.sh only, no need to type bash before the name now.

Saturn 2011-06-25 09:21

Re: [Announce] Yet another MITM attack script (Yamas-ARM)
 
Quote:

Originally Posted by Unhuman (Post 1038642)
New version with dependency check added - test if it works .

It still requires bash to be run, however it can now be run as
mitm_pcsci3nce.sh only, no need to type bash before the name now.

Hi, the check would be best done by using dpkg; e.g. for wget

Code:

if dpkg -l | grep wget 1>/dev/null; then echo $?;fi

stevomanu 2011-06-25 09:58

Re: [Announce] Yet another MITM attack script (Yamas-ARM)
 
finally got this working after reinstalling every thing all is working fine one thing i noticed i was sniffing on phone an was using pc an if i click on facebook it goes to white page with

Code:

location: ht
if i refresh page it works but surly some1 would realiz someting was wrong ..

thanks for all work on script to all involved

Chrome 2011-06-25 10:06

Re: [Announce] Yet another MITM attack script (Yamas-ARM)
 
Quote:

Originally Posted by Unhuman (Post 1038642)
New version with dependency check added - test if it works .

It still requires bash to be run, however it can now be run as
mitm_pcsci3nce.sh only, no need to type bash before the name now.

Placed it in /usr/bin and give it permissions. It does run using "mitm_pcsci3nce.sh"

Works like a charm and checks for deps on start up, but why not use osso-xterm and ash like vi_ did?

comaX 2011-06-25 10:30

Re: [Announce] Yet another MITM attack script (Yamas-ARM)
 
Quote:

Originally Posted by Saturn (Post 1038647)
Hi, the check would be best done by using dpkg; e.g. for wget

Code:

if dpkg -l | grep wget 1>/dev/null; then echo $?;fi

I didn't think about that, but I think just checking for a file to exist is simpler than calling two other programs, however light they are. That's a good idea though.

####

Quote:

Originally Posted by Chrome (Post 1038679)
Placed it in /usr/bin and give it permissions. It does run using "mitm_pcsci3nce.sh"

Works like a charm and checks for deps on start up, but why not use osso-xterm and ash like vi_ did?

Osso-xterm seems to be a pain in the *** to use ! But if we find a way to use it, it will be used. That's not a priority though, since xterm is pretty light and is the most used script-wise. As for ash, that's just plain weird. It should be working but when Unhuman tested it, it failed.

What would be nice is for you guys to test with ash on your own, either with :
- ash script.sh
- script.sh, with the first line of the script being #! /bin/ash
And then report back, either here, or by mail.

####


Quote:

Originally Posted by stevomanu (Post 1038669)
finally got this working after reinstalling every thing all is working fine one thing i noticed i was sniffing on phone an was using pc an if i click on facebook it goes to white page with

Code:

location: ht
if i refresh page it works but surly some1 would realiz someting was wrong ..

thanks for all work on script to all involved

That comes from sslstrip 0.9, and there's nothing we can do about it, unfortunately. But the script is not at fault here !

bass800 2011-06-25 11:00

Re: [Announce] Yet another MITM attack script (Yamas-ARM)
 
the script has failed to find ettercap but on its own ettercap works. I installed ettercap via karma's debz from link below. how can i correct this?

http://talk.maemo.org/showthread.php...cking+tutorial

Quote:


cd /home/user/MyDocs/karam
mv ettercap-ng.tar.gz /opt
cd /opt
tar xzvf ettercap-ng.tar.gz
chmod +rwx -R ettercap/
rm ettercap-ng.tar.gz
cd # maybe not required
ln -s /opt/ettercap/lib/libnet.so.1.3.0 /usr/lib/libnet.so.1
ln -s /opt/ettercap/bin/ettercap /usr/bin
ln -s /opt/ettercap/bin/etterfilter /usr/bin
ln -s /opt/ettercap/bin/etterlog /usr/bin


Chrome 2011-06-25 11:05

Re: [Announce] Yet another MITM attack script (Yamas-ARM)
 
Quote:

Originally Posted by comaX (Post 1038697)
What would be nice is for you guys to test with ash on your own, either with :
- ash script.sh
- script.sh, with the first line of the script being #! /bin/ash
And then report back, either here, or by mail.

Works fine with ash actually, but it shows this error after "You can discover hosts and enter IP(s) manually by entering D

Code:

ash: D: unknown operand

stevomanu 2011-06-25 11:21

Re: [Announce] Yet another MITM attack script (Yamas-ARM)
 
Quote:

Originally Posted by bass800 (Post 1038725)
the script has failed to find ettercap but on its own ettercap works. I installed ettercap via karma's debz from link below. how can i correct this?

http://talk.maemo.org/showthread.php...cking+tutorial

i had this issue an reinstalled ettercap from these instructions an now all is working fine

Code:


http://talk.maemo.org/showpost.php?p=852862&postcount=17

now all works mint


All times are GMT. The time now is 15:10.

vBulletin® Version 3.8.8