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-28 19:38

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

Originally Posted by comaX (Post 1040989)
If you feel it's ready for it, please be my guest ! Maybe we should just implement osso-xterm before that. Even though as I stated before, I don't think installing xterm requires too much too do, nor too much capacity consumed so I'm fine with it. I'dont have an N900 though !

###

Hopefully you like the YAMAS as a name :)

- missing an icon.
- added all dependencies apart from sslstrip
- start the app with:
Code:

sudo gainroot
yamas


comaX 2011-06-28 19:56

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

Originally Posted by Saturn (Post 1041004)
Hopefully you like the YAMAS as a name :)

- missing an icon.
- added all dependencies apart from sslstrip
- start the app with:
Code:

sudo gainroot
yamas


Yup I like yamas ! Not the greatest, but one could say it refers to the god Yama, and stuff like that. Truth is it's just another man in the middle automation script ! But one that rocks, imho.
Starting it with yamas is perfect, I've been lazy to do that in the BT5 version, and I still start it with "mitm". What a shame :p

You should check the download again though, I just implemented the first-tun check.
I'll upload the .deb to Unhuman's webiste and ask him to edit what needs to be edited ! Due to unfortunate circumstances, he only has limited internet connection these days, so it might take some time.

Do you know how to handle google projects ? With .svn and all that ? We could provide updates that way.

For the icon, I could try to do one, what are the specs of them ?
Size, format, etc. ?

MSHAH 2011-06-28 20:10

Re: [Announce] Yet another MITM attack script (Yamas-ARM)
 
can someone help me out please?

everything seems to be in order, dependencies and all. but i still end up getting nothing. tail-grep is showing me nothing and no details show up in the password window!

Saturn 2011-06-28 20:48

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

Originally Posted by comaX (Post 1041012)
Yup I like yamas ! Not the greatest, but one could say it refers to the god Yama, and stuff like that. Truth is it's just another man in the middle automation script ! But one that rocks, imho.
Starting it with yamas is perfect, I've been lazy to do that in the BT5 version, and I still start it with "mitm". What a shame :p

You should check the download again though, I just implemented the first-tun check.
I'll upload the .deb to Unhuman's webiste and ask him to edit what needs to be edited ! Due to unfortunate circumstances, he only has limited internet connection these days, so it might take some time.

Do you know how to handle google projects ? With .svn and all that ? We could provide updates that way.

For the icon, I could try to do one, what are the specs of them ?
Size, format, etc. ?

Yes, google and svn is ok for me.

The icon ideally should be 48x48 and png.

Next version I will add you as a maintainer :) and upload to the repos. I have already added the complete disclaimer you provide.

Some screenshots for you since you haven't got an N900; it's a real pity - this device was made for people like you! Maybe you get the next one, i.e. N9?

Saturn 2011-06-28 22:42

Re: [Announce] Yet another MITM attack script (Yamas-ARM)
 
Had some problems with the autobuilder which didn't like the long description. I finally had to cut it a little in order to let it pass.

OK finally. Check in 20 min from now here: http://maemo.org/packages/view/yamas/

Cheers

Unhuman 2011-06-28 23:52

Re: [Announce] Yet another MITM attack script (Yamas-ARM)
 
Just AMAZING work... Nothing more to say <3

EDIT:

Updated first post, and pcsci3nce.info

Saturn 2011-06-29 00:22

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

Originally Posted by Unhuman (Post 1041118)
...

Updated first post, and pcsci3nce.info

You can mention that all dependencies will be install automatically apart from ettercap and sslstrip. Those two need to be done first and manually from your guide.

Obviously, reason is they don't exist in extras.

AgogData 2011-06-29 00:49

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

Originally Posted by Saturn (Post 1041127)
You can mention that all dependencies will be install automatically apart from ettercap and sslstrip. Those two need to be done first and manually from your guide.

Obviously, reason is they don't exist in extras.

so now we remove the old script in /usr/bin and download the new package from extras ?

Kabouik 2011-06-29 01:30

Re: [Announce] Yet another MITM attack script (Yamas-ARM)
 
I've installed both ettercap and sslstrip using the links in the first post. After that, I installed Yamas using the package in extras. When I launch it, after setting all to default (ports, etc.), I get a warning stating that "cannot convert "nil12" to type FontStruct". I am more than a noob. I have no idea what it means as I don't know what is "nil12". I checked with yamas -d, and all dependencies are OK.

By the way, I tried to attack my laptop connected to my private wifi network. It was detected as a host but no passwords were retrieved. Nothing was appended to the main file like in the video shown on pcsci3nce.info. Any idea there?

AgogData 2011-06-29 01:46

Re: [Announce] Yet another MITM attack script (Yamas-ARM)
 
the new package is working despite the same msg i get as Kabouik (cannot convert "nil12" to type FontStruct) and the saving issue is solved now it can save. but its saving to /home/user/.yamas can i make it save to /home/user/MyDocs/Yamas ? or symlink to there ?

the warning during installing (replacing) busybox-power was a bit scary, whats the difference between the old stock and the new one ?

Unhuman 2011-06-29 10:04

Re: [Announce] Yet another MITM attack script (Yamas-ARM)
 
Ignore all font warnings.

comaX 2011-06-29 10:31

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

Originally Posted by Unhuman (Post 1041348)
Ignore all font warnings.

Yup and tell me at what line it occurs so that I redirect it to /dev/null? That should do :)

Saturn : I'm trying to create an account on maemo (seems like the one for the forums isn't enough) but it's having problems with confirming registration... Anyway, I'll need your help concerning the repos and all, so send me a mail at contact.comax@gmail.com ;)

By the way, I'm trying to install maemo in a Vmware so that I can do tests on my own !

price 2011-06-29 13:32

Re: [Announce] Yet another MITM attack script (Yamas-ARM)
 
3 Attachment(s)
hi, i've installed ettercap 0.7.3 and ssltrip 0.9 and then i've installed yamas from repos. when i launch yamas as root whith all settings default my network seems slow down and it can't discover any password.. can someone help me?

comaX 2011-06-29 13:51

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

Originally Posted by price (Post 1041470)
hi, i've installed ettercap 0.7.3 and ssltrip 0.9 and then i've installed yamas from repos. when i launch yamas as root whith all settings default my network seems slow down and it can't discover any password.. can someone help me?

There seems to be a problem with your egrep. What version do you have ?

price 2011-06-29 13:58

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

Originally Posted by comaX (Post 1041478)
There seems to be a problem with your egrep. What version do you have ?

how can i discover my version?

comaX 2011-06-29 14:12

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

Originally Posted by price (Post 1041485)
how can i discover my version?

dpkg -l | grep grep

Also, if you haven't rebooted since, is there grepcred.txt in /tmp ?

price 2011-06-29 14:31

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

Originally Posted by comaX (Post 1041493)
dpkg -l | grep grep

Also, if you haven't rebooted since, is there grepcred.txt in /tmp ?

thank you for the help.
it says: rc grep-gnu 2.5.-4maemo4
and when i type apt-get install grep it says:
selecting busybox instead of grep
busybox is already the newest version.

what about installing the grep-gnu package?

bipinbn 2011-06-29 14:35

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

Originally Posted by comaX (Post 1041493)
dpkg -l | grep grep

Also, if you haven't rebooted since, is there grepcred.txt in /tmp ?

Hi comax,

even i am facing the same problem.. all dependicies are met and script runs fine.. however i cant see any passwords ..

the password.txt is also empty

i did dpkg -l | grep grep but i dont get any output..

so i tried apt-get install grep but it says i have the latest version

Please help..

Thanks
Bipin

Unhuman 2011-06-29 14:57

Re: [Announce] Yet another MITM attack script (Yamas-ARM)
 
Got stuck with comax on the maemo sdk in virtual box - how can we install busybox-power in the SDK exactly? Got everything else installed, It returns an error -
dpkg: error processing /var/cache/apt/archives/busybox-power_1.18.5power1.armel.deb ( --unpack):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/busybox-power_1.18.5power1_armel.deb
E: Sub process /scratchbox/devkits/debian-etch/bin/dpkg returned an error code (1)

price 2011-06-29 15:02

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

Originally Posted by price (Post 1041513)
thank you for the help.
it says: rc grep-gnu 2.5.-4maemo4
and when i type apt-get install grep it says:
selecting busybox instead of grep
busybox is already the newest version.

what about installing the grep-gnu package?

sorry i'm on kernel-power 47 and lastest CSSU. can it helps?

Unhuman 2011-06-29 15:05

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

Originally Posted by price (Post 1041537)
sorry i'm on kernel-power 47 and lastest CSSU. can it helps?

Pretty sure you don't have busybox-power installed.

price 2011-06-29 15:10

Re: [Announce] Yet another MITM attack script (Yamas-ARM)
 
i have busybox-power installed!

comaX 2011-06-29 15:22

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

Originally Posted by price (Post 1041540)
i have busybox-power installed!

It's weird that you had any output, since it's in busybox...
bipinbn has the right output though...

Are you guys trying this on your own network ? Did you saved the whole log file and searched for the credentials you submitted ?

Copy all the output to a pastebin so that we know what's going on. Make it disappear after one or two days, it would look bad if people found them while just searching for yamas :p

price 2011-06-29 15:35

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

Originally Posted by comaX (Post 1041549)
It's weird that you had any output, since it's in busybox...
bipinbn has the right output though...

Are you guys trying this on your own network ? Did you saved the whole log file and searched for the credentials you submitted ?

Copy all the output to a pastebin so that we know what's going on. Make it disappear after one or two days, it would look bad if people found them while just searching for yamas :p

yes i'm trying on my own network and my own account :)
i'm quite a noob, do you mean the output saved on /home/user/.yamas/ ?

i've attached my output. i hope it can help to solve my problem. I would love to try this script ;)

price 2011-06-29 17:25

Re: [Announce] Yet another MITM attack script (Yamas-ARM)
 
what do you think about a bad installation of sslstrip or of ettercap?

comaX 2011-06-29 17:31

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

Originally Posted by price (Post 1041604)
what do you think about a bad installation of sslstrip or of ettercap?

Might be... But I talked it over with Unhuman for a quite a longtime this afternoon, and our conclusion was : "well, ****, we don't know what's going on for those dudes."

i'll have a look at your file and report ;)

EDIT : the file was just fine, something must have f*cked up during the parsing...

And it fails for some reason, check that you have /tmp/grepcred.txt and that it's not empty. For some reason, it happens to me from time to time... Maybe my host provider doesn't like too much requests at the same time...

price 2011-06-29 18:47

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

Originally Posted by price (Post 1041554)
yes i'm trying on my own network and my own account :)
i'm quite a noob, do you mean the output saved on /home/user/.yamas/ ?

i've attached my output. i hope it can help to solve my problem. I would love to try this script ;)

For malicious people the username and pass that i've used for the test are fake ;) don't spend time to try it.

price 2011-06-29 19:25

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

Originally Posted by comaX (Post 1041606)
Might be... But I talked it over with Unhuman for a quite a longtime this afternoon, and our conclusion was : "well, ****, we don't know what's going on for those dudes."

i'll have a look at your file and report ;)

EDIT : the file was just fine, something must have f*cked up during the parsing...

And it fails for some reason, check that you have /tmp/grepcred.txt and that it's not empty. For some reason, it happens to me from time to time... Maybe my host provider doesn't like too much requests at the same time...

here is my grep output i can't see any -a option.. may be this the error?

BusyBox v1.18.5 (Debian 1.18.5power1) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ sudo gainroot
Root shell enabled


BusyBox v1.18.5 (Debian 1.18.5power1) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # egrep
BusyBox v1.18.5 (Debian 1.18.5power1) multi-call binary.

No help available.

/home/user # grep
BusyBox v1.18.5 (Debian 1.18.5power1) multi-call binary.

Usage: grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]...

Search for PATTERN in FILEs (or stdin)

Options:
-H Add 'filename:' prefix
-h Do not add 'filename:' prefix
-n Add 'line_no:' prefix
-l Show only names of files that match
-L Show only names of files that don't match
-c Show only count of matching lines
-o Show only the matching part of line
-q Quiet. Return 0 if PATTERN is found, 1 otherwise
-v Select non-matching lines
-s Suppress open and read errors
-r Recurse
-i Ignore case
-w Match whole words only
-F PATTERN is a literal (not regexp)
-E PATTERN is an extended regexp
-m N Match up to N times per file
-A N Print N lines of trailing context
-B N Print N lines of leading context
-C N Same as '-A N -B N'
-e PTRN Pattern to match
-f FILE Read pattern from file

/home/user #

casper27 2011-06-29 19:30

Re: [Announce] Yet another MITM attack script (Yamas-ARM)
 
Missing dependancy
ettercap-common
Should probably remove.

Saturn 2011-06-29 20:41

Re: [Announce] Yet another MITM attack script (Yamas-ARM)
 
For info..

New version in devel (0.9.4-1) with changes that comaX sent me.

changelog:
* Added option -d to force dependencies check.
* Dependency check will be run automatically unless it has been a success at least once.
* Corrected urls of files to download.
* Protected some tests better.
* Changed log storage folder to /home/user/yamas

Some other info from me:

- we avoid the MyDocs folder to store logs as it is not always available, e.g. when in mass storage mode.
- previous version is broken since I messed the urls to download the grepcred.txt file (sorry guys my fault completely).
Proposal to comaX: we could add the two files needing download in the package and provide updates on them with new distributions.
- the ettercap-common is a dependency (as is sslstrip) but the repos don't have a version atm. Have moved it to the proposed packages.

Saturn 2011-06-29 21:23

Re: [Announce] Yet another MITM attack script (Yamas-ARM)
 
comaX, you are now maintainer in your project :D

just approved your request.

price 2011-06-29 21:33

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

Originally Posted by price (Post 1041513)
thank you for the help.
it says: rc grep-gnu 2.5.-4maemo4
and when i type apt-get install grep it says:
selecting busybox instead of grep
busybox is already the newest version.

what about installing the grep-gnu package?

is this output correct? o.o

Kabouik 2011-06-29 21:39

Re: [Announce] Yet another MITM attack script (Yamas-ARM)
 
Yamas 0.9.4-1 did not solve my problem. Still no password retrieved when I attack my private wifi network, and I still get the following output:

Quote:

egrep: bad regex ' (function(){var s=document.createElement('script');s.async="async" ;s.type="text/javascript";s.src='http://tcr.tynt.com/ti.js';var h=document.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);})();': Invalid content of \{\}
I have not this message each time I launch Yamas however, and no idea of how to reproduce the error. :/

Saturn 2011-06-29 23:37

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

Originally Posted by price (Post 1041513)
thank you for the help.
it says: rc grep-gnu 2.5.-4maemo4
and when i type apt-get install grep it says:
selecting busybox instead of grep
busybox is already the newest version.

what about installing the grep-gnu package?

hi,

it might be irrelevant but you could try install and purge the grep-gnu package?
from the "rc" flag it seems you still have the configuration.

I would do:
Code:

apt-get install grep-gnu
apt-get remove --purge grep-gnu

if that didn't help I would remove/install the busybox-power

hih

price 2011-06-29 23:56

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

Originally Posted by Saturn (Post 1041832)
hi,

it might be irrelevant but you could try install and purge the grep-gnu package?
from the "rc" flag it seems you still have the configuration.

I would do:
Code:

apt-get install grep-gnu
apt-get remove --purge grep-gnu

if that didn't help I would remove/install the busybox-power

hih

Here my output. Thank you for your interest :)

/home/user # apt-get remove --purge grep-gnu
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
grep-gnu*
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
grep-gnu
0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded.
After this operation, 1143kB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
?] Yes, do as I say!
dpkg - warning, overriding problem because --force enabled:
This is an essential package - it should not be removed.
(Reading database ... 28776 files and directories currently installed.)
Removing grep-gnu ...
Purging configuration files for grep-gnu ...
dpkg: error processing grep-gnu (--purge):
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
grep-gnu
E: Sub-process /usr/bin/dpkg returned an error code (1)
/home/user #

udaychaitanya16 2011-06-30 06:00

Re: [Announce] Yet another MITM attack script (Yamas-ARM)
 
Thank you Comax,Unhuman,Saturn.You made N900 invaluable.

Saturn 2011-06-30 09:48

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

Originally Posted by price (Post 1041837)
Here my output. Thank you for your interest :)

/home/user # apt-get remove --purge grep-gnu
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
grep-gnu*
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
grep-gnu
0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded.
After this operation, 1143kB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
?] Yes, do as I say!
dpkg - warning, overriding problem because --force enabled:
This is an essential package - it should not be removed.
(Reading database ... 28776 files and directories currently installed.)
Removing grep-gnu ...
Purging configuration files for grep-gnu ...
dpkg: error processing grep-gnu (--purge):
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
grep-gnu
E: Sub-process /usr/bin/dpkg returned an error code (1)
/home/user #

crap..

what does it say for:
Code:

apt-cache rdepends grep-gnu
I think you should remove yamas, busybox-power
then apt-get -f install
remove grep-gnu if it is still there and then reinstall yamas (if you want it).

we can do it on steps, send me PMs with output of every step.

iDont 2011-06-30 11:38

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

Originally Posted by AgogData (Post 1041154)
the warning during installing (replacing) busybox-power was a bit scary, whats the difference between the old stock and the new one ?

Please read the first post of this thread; I could copy-paste it into this thread, but a pointer is more practical I think ;)

About the warning: whilst I haven't had a single report of a failing installation (out of a lot of downloads, according to this), it does seem fair to me to warn users about what the installation does, which is in fact overwriting an essential binary.

Quote:

Originally Posted by Unhuman (Post 1041532)
Got stuck with comax on the maemo sdk in virtual box - how can we install busybox-power in the SDK exactly? Got everything else installed, It returns an error -
dpkg: error processing /var/cache/apt/archives/busybox-power_1.18.5power1.armel.deb ( --unpack):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/busybox-power_1.18.5power1_armel.deb
E: Sub process /scratchbox/devkits/debian-etch/bin/dpkg returned an error code (1)

I'll look into this; I haven't tried installing busybox-power in Scratchbox before, as I do all testing on the device itself ;)
Seems like I have to implement some checks to detect the current environment, and use different codepaths for them in the shell scripts. Thanks for spotting the failing installation in the SDK environment :)

By the way, if you're going to use the SDK as a development platform for YAMAS: do note that the SDK doesn't match Maemo 100%; e.g. Scratchbox has GNU grep and egrep, whilst these are provided by BusyBox in Maemo. In fact, BusyBox isn't even installed by default in Scratchbox. I'm sure there are quite a few more of these kind of differences.

AgogData 2011-06-30 14:34

Re: [Announce] Yet another MITM attack script (Yamas-ARM)
 
I've just tested it :
- yamas saves the files into /home/user/yamas not home/user/MyDocs/yamas
- the password.txt contains
website = www.facebook.com
login = true
website = www.facebook.com
login = (some numbers assuming it maybe the password)
why don't it show the ID or the username ?

comaX 2011-06-30 14:53

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

Originally Posted by AgogData (Post 1042204)
I've just tested it :
- yamas saves the files into /home/user/yamas not home/user/MyDocs/yamas
- the password.txt contains
website = www.facebook.com
login = true
website = www.facebook.com
login = (some numbers assuming it maybe the password)
why don't it show the ID or the username ?

Hmm... You sir are a bad student ! Since you're assuming it may be the password, it means you don't know it. If you don't know it, it's not yours. I'm sorry, but I won't help you for that.
Here's just a hint : we are parsing the log.

You should use the script on your own connection and then get log into a maximum of sites to know what the output should look like.

The saving location is just a variable now, so you can change it to whatever suits you ;) Saturn used this location because of some problem with MyDocs not being always available or something.


All times are GMT. The time now is 23:20.

vBulletin® Version 3.8.8