maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Metasploit (https://talk.maemo.org/showthread.php?t=6466)

scegliau 2007-07-11 16:01

Re: Metasploit
 
I use the Howto, so the commands are:

>load db_sqlite3
>db_create pentest
>db_nmap 192.168.90.2

thanks
sceliau

mfresh 2007-07-11 17:17

Re: Metasploit
 
Mmmmm. I don't know what is wrong, but my first line of investigation would be nmap.

Does it work by itself from the command line?

It is a bit stange that you had an error when you tried to install it using app manager. Can you install it and try again? Are you sure you are are installing from file and installing the version downloaded from the pierre-droids site?

brendan 2007-07-11 17:39

Re: Metasploit
 
i get errors when trying to install the nmap and scapy packages. i have followed the tutorial and am using the packages from the pierre-droids site.

seattleweb 2007-07-12 03:56

Re: Metasploit
 
Quote:

Originally Posted by brendan (Post 59104)
i get errors when trying to install the nmap and scapy packages. i have followed the tutorial and am using the packages from the pierre-droids site.

It might be an ncurses issue

BigDave 2007-07-13 13:56

Re: Metasploit
 
Hi, been lurking here for a while since I got my N800 earlier in the year and have followed mfresh's excellent howto to install metasploit etc using the .debs and .gems from Pierre's site.

I've got the latest firmware installed and kismet is working OK, as is nmap from the command line.

Everything seemed to install OK from xterm (using osso-xterm from the maemo-hackers repository, and did a 'sudo gainroot' before I started the howto), and I followed the order laid out in the howto.

The metasploit tarball is untarred to /media/mmc1/metasploit3/framework3.0 but when I try to run ./msfweb to launch the front end I get a "Permission Denied" error message (again, I've done a 'sudo gainroot' first).

Does anyone have any suggestions?

Thanks a million

BigDave 2007-07-13 14:07

Re: Metasploit
 
P.S. I also get the same "Permission Denied" error if I try to run ./msfconsole :-(

mfresh 2007-07-13 14:55

Re: Metasploit
 
Try moving your whole Metasploit3 directory from the memory card into your home directory. Then run ./msfconsole or ./msfweb from there.

I think as root you can do this using the command from /media/mmc1/
# mv -rf Metasploit3 /home/user/

Let me know if that makes it work....

brendan 2007-07-13 15:06

Re: Metasploit
 
Quote:

Originally Posted by seattleweb (Post 59250)
It might be an ncurses issue

i see that the update for ncurses is available, but broken and cannot be installed on my n800 as it throws an error. it also states in the decription that it is "broken but can be updated" or something like that.

BigDave 2007-07-13 16:34

Re: Metasploit
 
Quote:

Originally Posted by mfresh (Post 59680)
Try moving your whole Metasploit3 directory from the memory card into your home directory. Then run ./msfconsole or ./msfweb from there.

I think as root you can do this using the command from /media/mmc1/
# mv -rf Metasploit3 /home/user/

Let me know if that makes it work....

mfresh, you're a genius...

That fixed it. :D

Thank you once again for your excellent HOWTO and your speedy reply.

Metasploit Web console's a bit slow on the N800, but damn it's good stuff :cool:

mdanehart 2007-07-13 20:37

Re: Metasploit
 
After reflashing again I surrender. Maybe someday this program will be in the 'green arrow, install now package' ;)

jnash 2007-07-13 23:32

Re: Metasploit
 
im getting a "require. no such file to load" when i try and run metasploit?? any ides!!!

SeRi@lDiE 2007-07-14 00:51

Re: Metasploit
 
Quote:

Originally Posted by BigDave (Post 59715)
mfresh, you're a genius...

That fixed it. :D

Thank you once again for your excellent HOWTO and your speedy reply.

Metasploit Web console's a bit slow on the N800, but damn it's good stuff :cool:


For security maemo does not allow you to execute from mmc "vfat"

seattleweb 2007-07-14 03:22

Re: Metasploit
 
Quote:

Originally Posted by SeRi@lDiE (Post 59824)
For security maemo does not allow you to execute from mmc "vfat"

LoL... make's perfect sense actually... had that same problem as well the first time I installed the ruby packages/gems (N800) and tried to run ./msf... from my internal (vfat)...

New question though... I set up my 1 gb SD (external plain old Sandisk) card with 2 partitions ( small vfat and larger ext2. I'm eventually going to mv some of the filesystem to it, but my question is what kind of performance increase/decrease can I expect when running metasploit off the ext2 partition on the SD?

dmtelf 2007-07-25 13:37

Re: Metasploit
 
I'm a N800 OS 2007 v4.2007.26-8 newbie & I've followed the excellent metasploit install HOWTO and managed to download and install everything in the order listed in the HOWTO etc.

I had 2 problems, the 1st one will be much easier to resolve than the 2nd.

Problem #1
The untarred Metasploit framework is in the wrong location at the moment i.e. Documents -> Metasploit -> framework 3.0 & from reading previous posts in this thread, I understand it needs to be moved to another location i.e.

mv -rf Metasploit /home/user/

Is this correct? Or should it be mv -rf framework 3.0 /home/user?

Problem #2
When I use Application Manager to install nmap_4.2.0_armel, it says "Unable to install. Incompatible application package."

Does anyone have any ideas why I'm getting this error? I'm sure I'm not the only one trying to install metasploit using the howto on the latest N800 OS?

Many thanks in advance for your help!

DMTelf

barry99705 2007-07-25 15:52

Re: Metasploit
 
Quote:

Originally Posted by dmtelf (Post 62867)
I'm a N800 OS 2007 v4.2007.26-8 newbie & I've followed the excellent metasploit install HOWTO and managed to download and install everything in the order listed in the HOWTO etc.

I had 2 problems, the 1st one will be much easier to resolve than the 2nd.

Problem #1
The untarred Metasploit framework is in the wrong location at the moment i.e. Documents -> Metasploit -> framework 3.0 & from reading previous posts in this thread, I understand it needs to be moved to another location i.e.

mv -rf Metasploit /home/user/

Is this correct? Or should it be mv -rf framework 3.0 /home/user?

Problem #2
When I use Application Manager to install nmap_4.2.0_armel, it says "Unable to install. Incompatible application package."

Does anyone have any ideas why I'm getting this error? I'm sure I'm not the only one trying to install metasploit using the howto on the latest N800 OS?

Many thanks in advance for your help!

DMTelf

I think as long as the framework folder is in flash, it doesn't really matter where. Try redownloading nmap.

dmtelf 2007-07-25 16:29

Re: Metasploit
 
Quote:

Originally Posted by barry99705 (Post 62909)
I think as long as the framework folder is in flash, it doesn't really matter where. Try redownloading nmap.

I've already tried redownloading nmap and have also tried installing it straight from Pierre's website where all the other .deb files pointed to in the N800 Metasploit install HOWTO are but I still get the same error - "Unable to install. Incompatible application package." :-(

The infuriating thing is I was able to install sqlite3-ruby_1.2.1_armel.deb (and everything else in the HOWTO) without any problems.

curiousj 2007-07-31 03:59

Re: Metasploit
 
Quote:

Originally Posted by dmtelf (Post 62921)
I've already tried redownloading nmap and have also tried installing it straight from Pierre's website where all the other .deb files pointed to in the N800 Metasploit install HOWTO are but I still get the same error - "Unable to install. Incompatible application package." :-(

The infuriating thing is I was able to install sqlite3-ruby_1.2.1_armel.deb (and everything else in the HOWTO) without any problems.

I'm getting the same error. nmap won't install.

Any ideas whats going on?

scegliau 2007-07-31 08:26

Re: Metasploit
 
You have to install it from command line with:

# dpkg -i /where/yuo/put/your/packet/nmap....deb

bye
scegliau

mfresh 2007-07-31 09:16

Re: Metasploit
 
barry99705 - if you untarred the Metasploit tarball into your documents folder, you've probably got a folder called framework-3.0 or something like that in the documents folder, containing all the Metasploit stuff. You can run Metasploit from there, or you can move the whole framework-3.0 folder to somewhere more convenient if you want, like your home folder, by typing

mv -r framework-3.0 /home/user/

Hope that helps

curiousj 2007-07-31 13:40

Re: Metasploit
 
Quote:

Originally Posted by scegliau (Post 64271)
You have to install it from command line with:

# dpkg -i /where/yuo/put/your/packet/nmap....deb

bye
scegliau

great!

in the home stretch.

I logged in as root. This is what I type & get:
Nokia-N800-26:/home/user/Metasploit# ./msfweb
: No such file or directory

But its there...

Nokia-N800-26:/home/user/Metasploit# ls -tla
drwxr-x--- 30 user users 0 Jul 31 09:24 ..
drwxrwxrwx 10 user root 0 Jul 31 05:16 data
drwxrwxrwx 4 user root 0 Jul 31 05:16 documentation
drwxrwxrwx 5 user root 0 Jul 31 05:14 external
drwxrwxrwx 5 user root 0 Jul 31 05:12 lib
drwxrwxrwx 7 user root 0 Jul 31 05:11 modules
drwxrwxrwx 2 user root 0 Jul 31 05:11 plugins
drwxrwxrwx 3 user root 0 Jul 31 05:11 scripts
drwxrwxrwx 10 user root 0 Jul 31 05:11 .
drwxrwxrwx 3 user root 0 Jul 31 05:11 tools
-rwxr-xr-x 1 user root 1307 Mar 25 15:45 README
-rwxr-xr-x 1 user root 6882 Mar 25 15:45 msfcli
-rwxr-xr-x 1 user root 2040 Mar 25 15:45 msfconsole
-rwxr-xr-x 1 user root 1669 Mar 25 15:45 msfd
-rwxr-xr-x 1 user root 4349 Mar 25 15:45 msfencode
-rwxr-xr-x 1 user root 1752 Mar 25 15:45 msfgui
-rwxr-xr-x 1 user root 10200 Mar 25 15:45 msfopcode
-rwxr-xr-x 1 user root 2457 Mar 25 15:45 msfpayload
-rwxr-xr-x 1 user root 3089 Mar 25 15:45 msfpescan
-rwxr-xr-x 1 user root 1883 Mar 25 15:45 msfweb

edit: i run sudo ./msfweb and get "user user is not allowed to execute"

i am trying to do this through xterm on the device

SeRi@lDiE 2007-07-31 18:32

Re: Metasploit
 
You have to run in xterm...
chmod +x -R /path/to/files

barry99705 2007-07-31 20:46

Re: Metasploit
 
Quote:

Originally Posted by mfresh (Post 64284)
barry99705 - if you untarred the Metasploit tarball into your documents folder, you've probably got a folder called framework-3.0 or something like that in the documents folder, containing all the Metasploit stuff. You can run Metasploit from there, or you can move the whole framework-3.0 folder to somewhere more convenient if you want, like your home folder, by typing

mv -r framework-3.0 /home/user/

Hope that helps

Uhh, I can run it just fine. I was saying as long as the folder sits in your flash memory.... Ahh, never mind. I'm not going to put it back on. Every time I've installed it, and I have to power cycle the Nokia for some reason it boots to a white screen of doom. I think I'll stick to my Zaurus for cool network hackery stuff.

curiousj 2007-08-01 02:56

Re: Metasploit
 
Quote:

Originally Posted by SeRi@lDiE (Post 64421)
You have to run in xterm...
chmod +x -R /path/to/files

i did that. seems to have done nothing.

repro:
- login as user
- sudo gainroot -> "Root shell enabled"
- whoami -> root
- chmod +x -R /home/user/Metasploit/
- cd /home/user/Metasploit
- ls -tla

drwxr-x--- 30 user users 0 Jul 31 22:42 ..
drwxrwxrwx 10 user root 0 Jul 31 05:16 data
drwxrwxrwx 4 user root 0 Jul 31 05:16 documentation
drwxrwxrwx 5 user root 0 Jul 31 05:14 external
drwxrwxrwx 5 user root 0 Jul 31 05:12 lib
drwxrwxrwx 7 user root 0 Jul 31 05:11 modules
drwxrwxrwx 2 user root 0 Jul 31 05:11 plugins
drwxrwxrwx 3 user root 0 Jul 31 05:11 scripts
drwxrwxrwx 10 user root 0 Jul 31 05:11 .
drwxrwxrwx 3 user root 0 Jul 31 05:11 tools
-rwxr-xr-x 1 user root 1307 Mar 25 15:45 README
-rwxr-xr-x 1 user root 6882 Mar 25 15:45 msfcli
-rwxr-xr-x 1 user root 2040 Mar 25 15:45 msfconsole
-rwxr-xr-x 1 user root 1669 Mar 25 15:45 msfd
-rwxr-xr-x 1 user root 4349 Mar 25 15:45 msfencode
-rwxr-xr-x 1 user root 1752 Mar 25 15:45 msfgui
-rwxr-xr-x 1 user root 10200 Mar 25 15:45 msfopcode
-rwxr-xr-x 1 user root 2457 Mar 25 15:45 msfpayload
-rwxr-xr-x 1 user root 3089 Mar 25 15:45 msfpescan
-rwxr-xr-x 1 user root 1883 Mar 25 15:45 msfweb

still

- cd /home/user/Metasploit
- ./msfweb -> ": No such file or directory"

same with ./msfconsole

blah...



edit: I got it working by re-downloading framework 3.0 directly to my device. Navigated to /home/user/ and tar -xvzf the path of the tar.gz as directed by the blog README. I didn't remove the .svn files nor did I have to chmod. Thanks to everyone who helped.

scrappy898 2007-08-21 08:22

Re: Metasploit
 
hello.im kinda new to linux but believe i can work my way to instsll w the instructions.the only problem is 'untarring' the framework as i have never done that. Were would it be more convinient 2 untarred and whats the command on xterm?.thanks

tweetketan 2008-11-03 12:49

Re: Metasploit
 
if ur getting PERMISSION DENIED then enter {chmod 777 msfconsole} and then enter {./msfconsole}
same for msfweb


All times are GMT. The time now is 21:12.

vBulletin® Version 3.8.8