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)

Saturn 2011-06-25 11:46

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

Originally Posted by Chrome (Post 1038729)
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

Hi comaX,

to correct those errors you need for example in line 79:

Code:

if [[ $(grep "0" ./test.txt) == "" ]]; then
the following:
Code:

if [[ "$(grep "0" ./test.txt)" == "" ]]; then
that is "$(blabla)" type of thing.

You have this in many ifs but not everywhere and ash is strict about (bash can handle those).

bass800 2011-06-25 12:58

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

Originally Posted by stevomanu (Post 1038741)
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

coolz, that worked. thanks.

stevomanu 2011-06-25 13:16

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

Originally Posted by bass800 (Post 1038804)
coolz, that worked. thanks.

no problem any time , cant i suggest next time use THANKS button it saves on loads of thank you posts ..

Unhuman 2011-06-25 13:48

Re: [Announce] Yet another MITM attack script (Yamas-ARM)
 
That is what happens when you have 5 different ettercap ports with 5 different places that it shits its files to... Can someone say where is ettercap placed from the karam installation?

EDIT:
Obviously if you are sure ettercap is installed ignore the dependency warning. Gotta update the script to search in multiple locations due to the explanation above.

comaX 2011-06-25 14:25

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

Originally Posted by Saturn (Post 1038764)
Hi comaX,

to correct those errors you need for example in line 79:

Code:

if [[ $(grep "0" ./test.txt) == "" ]]; then
the following:
Code:

if [[ "$(grep "0" ./test.txt)" == "" ]]; then
that is "$(blabla)" type of thing.

You have this in many ifs but not everywhere and ash is strict about (bash can handle those).

Yeah, I noticed ash is pretty strict ! But also pretty cool on some point, especially echo, for instance.
I'm working on all those operand errors, but as I said earlier, I'm in the middle of a moving out, so it might take some time !

Also, now that the dependencies check works in ash, I'll introduce looking for different paths ;)
How should the script react to a missing dependency ? Just a warning ? Exiting ?

badstraw 2011-06-25 14:33

Re: [Announce] Yet another MITM attack script (Yamas-ARM)
 
Do you guys know why am I getting :
Warning : Cannot convert string "nil2" to type Fontstruct

comaX 2011-06-25 15:01

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

Originally Posted by badstraw (Post 1038865)
Do you guys know why am I getting :
Warning : Cannot convert string "nil2" to type Fontstruct

Just discard this error, it's just some font stuff. If you tell me the line the error comes at, I'll try to fix it !

Saturn 2011-06-25 15:35

Re: [Announce] Yet another MITM attack script (Yamas-ARM)
 
1 Attachment(s)
Hi comaX and Unhuman,

I think this removes bash dependencies. Have added also tabs here and there for me to read it easier.

Hope you find it useful.

Note: Haven't tested it much.

Chrome 2011-06-25 16:03

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

Originally Posted by Saturn (Post 1038892)
Hi comaX and Unhuman,

I think this removes bash dependencies. Have added also tabs here and there for me to read it easier.

Hope you find it useful.

Note: Haven't tested it much.

Operand errors are gone now. I let it run for 5 minutes, and got no errors whatsoever.

On a side note: xterm really annoys me, font is small, and you can't copy directly from it :o

Edit: after 10 minutes of running device crashed and restarted. This never happened with the previous scripts.

comaX 2011-06-25 16:18

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

Originally Posted by Chrome (Post 1038909)
Operand errors are gone now. I let it run for 5 minutes, and got no errors whatsoever.

On a side note: xterm really annoys me, font is small, and you can't copy directly from it :o

Edit: after 10 minutes of running device crashed and restarted. This never happened with the previous scripts.

Nice to report on Saturn's version. On each echo line, is the argument printed ? Because I had to remove them all with my version of ash...
Xterm is a secondary problem dude, just copy from the .pass.txt for now ^^ I promise I'll try and make it through with osso when I have the time ;)

The fact that you device crash is not surprising ! The parsing method is very CPU-consuming (working on something about that, btw ; but I'm having a hard time !). What I can suggest is that you go to the RTP menu, and pause or kill the process for some time.

Could you provide me with screenshots of Saturn's version please ? That may help me a great lot !

Thanks to you both :)


All times are GMT. The time now is 08:33.

vBulletin® Version 3.8.8