Read full details here:
How to fix GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: An authentication agent already exists for the given subject error in Kali, LMDE or Debian Linux?
This is a small guide on How to fix GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: An authentication agent already exists for the given subject error in Kali, LMDE or Debian Linux.
How to fix GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed
Background:
I use gdm3+XFCE on my box (amd64,...
Read the rest of it here: How to fix GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: An authentication agent already exists for the given subject error in Kali, LMDE or Debian Linux?
Linux How to, Guides and Tutorials, specific to Kali Linux, Graphics card issues, Laptop and CPU temperature, ethical hacking, cracking and general security issues. Visit us at http://www.blackmoreops.com
Thursday, November 28, 2013
How to fix GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: An authentication agent already exists for the given subject error in Kali, LMDE or Debian Linux?
How to fix "not starting portmapper is not running ... (warning)" in Debian or Kali Linux?
Read full details here:
How to fix "not starting portmapper is not running ... (warning)" in Debian or Kali Linux?
This is a small guide on How to fix “not starting portmapper is not running … (warning)” in Debian or Kali Linux.
Fixing “not starting portmapper is not running … (warning)”:
In most Kali or Debian installation users see this warning while booting their...
Read the rest of it here: How to fix "not starting portmapper is not running ... (warning)" in Debian or Kali Linux?
How to install and configure printers on Linux (cups and foomatic-db)?
Read full details here:
How to install and configure printers on Linux (cups and foomatic-db)?
This is a small guide on How to install configure printers on Linux (cups and foomatic-db)?.
We will be using cups, cups-client and foomatic-db for this purpose. Foomatic is a database-driven system for integrating free software printer drivers with common spoolers under Unix. It supports CUPS,...
Read the rest of it here: How to install and configure printers on Linux (cups and foomatic-db)?
How to change repositories to a different mirror?
Read full details here:
How to change repositories to a different mirror?
This is a guide on How to change repositories to a different mirror that applies to all Linux distributions. Often you would feel the auto selected mirror via GeoIP is not the fastest one of you’re just paranoid like me who would want to select a mirror from a specific country. This guide...
Read the rest of it here: How to change repositories to a different mirror?
How to hack Remote PC (Windows 2003 server) with Metasploits
This is a a detailed step by step guide on How to hack Remote PC with Metasploits (Windows 2003 server). I’ve used BackTrack 5 and Windows 2003 server in a virtual environment. The ease of hacking is scary and readers, sysadmins are advised to update their Windows 2003 server to the latest patch/service pack and use additional antivirus, firewalls to protect them from similar situation. Exactly same commands can be used on Kali Linux, Ubuntu, Debian or any Linux that got Metasploits installed. In fact you can just do the whole thing from a Virtual Machine or USB and leave no trace whatsoever.
The author takes no responsibility on how this tutorial is being used by readers and this is for educational purpose only.
- Contents
- Introduction
- Metasploit quick guide
- search
- show exploits
- show payloads
- show options
- info
- use
- set RHOST
- set RPORT
- set PAYLOAD
- set LPORT
- exploit
- help
- Lab Setup
- Objective
- Detailed Steps
- Step 1 – Scan with nmap for open ports
- Step 2 – Open msfconsole
- Step 3 – Search RPC exploit in Metasploit
- Step 4 – Gather info about target exploit
- Step 5 – Activate exploit
- Step 6 – Configure exploit
- Step 7 – Set payload for exploit
- Step 8 – Launch exploit and establish connection
- Step 9 – Perform an action on pentested server
Introduction
Metasploit is simple to use and is designed with ease-of-use in mind to aid Penetration Testers.I will be taking you through this demo in BackTrack 5 R3, so go ahead and download that if you don’t already have it:
http://www.backtrack-linux.org/downloads/
The reason for using BackTrack 5 R3 is because it has the correct Ruby Libraries.
Metasploit framework has three work environments,
- The msfconsole,
- The msfcli interface and
- The msfweb interface.
Metasploit quick guide
Before executing your exploit, it is useful to understand what some Metasploit commands do. Below are some of the commands that you will use most. Graphical explanation of their outputs would be given as and when we use them while exploiting some boxes in later part of the article.
- search : Typing in the command ‘search’ along with the keyword lists out the various possible exploits that have that keyword pattern.
- show exploits : Typing in the command ‘show exploits‘ lists out the currently available exploits. There are remote exploits for various platforms and applications including Windows, Linux, IIS, Apache, and so on, which help to test the flexibility and understand the working of Metasploit.
- show payloads : With the same ‘show‘ command, we can also list the payloads available. We can use a ‘show payloads’ to list the payloads.
- show options : Typing in the command ‘show options‘ will show you options that you have set and possibly ones that you might have forgotten to set. Each exploit and payload comes with its own options that you can set.
- info : If you want specific information on an exploit or payload, you are able to use the ‘info’ command. Let’s say we want to get complete info of the payload ‘winbind’. We can use ‘info payload winbind‘.
- use : This command tells Metasploit to use the exploit with the specified name
- set RHOST : This command will instruct Metasploit to target the specified remote host.
- set RPORT : This command sets the port that Metasploit will connect to on the remote host.
- set PAYLOAD : This command sets the payload that is used to a generic payload that will give you a shell when a service is exploited.
- set LPORT : This command sets the port number that the payload will open on the server when an exploit is exploited. It is important that this port number be a port that can be opened on the server (i.e.it is not in use by another service and not reserved for administrative use), so set it to a random 4 digit number greater than 1024, and you should be fine. You’ll have to change the number each time you successfully exploit a service as well.
- exploit : Actually exploits the service. Another version of exploit, rexploit reloads your exploit code and then executes the exploit. This allows you to try minor changes to your exploit code without restarting the console
- help : The ‘help’ command will give you basic information of all the commands that are not listed out here.
Lab Setup:
Victim MachineOS: Microsoft Windows Server 2003
IP: IP: 192.168.42.128
Attacker (Our) Machine
OS: BackTrack 5 R3
Kernel version: Linux bt 2.6.38 #1 SMP Thu Mar 17 20:52:18 EDT 2011 i686 GNU/Linux
Metasploit Version: Built in version of metasploit 3.8.0-dev
IP: 192.168.42.128
Objective
The only information provided to us about the remote server is that it is a Windows 2003 Server and the Objective is to gain shell access of this remote server.Detailed Steps
Step 1 – Scan with nmap for open ports
Perform an nmap scan of the remote server 192.168.42.129.The output of the nmap scan shows us a range of ports open which can be seen below in Figure 1.
Read the rest of it here: How to hack Remote PC with Metasploits (Windows 2003 server)
How to fix broken Menu in Kali Linux
Read full details here:
How to fix broken Menu in Kali Linux
How to fix broken Menu in Kali Linux
If you have a broken menu in Kali Linux, for example,
You deleted menu items
You reordered them and now want the old menu back
You accidentally dragged one into another
You renamed them
You removed some applications and can’t remember which one
You...
Read the rest of it here: How to fix broken Menu in Kali Linux
How to install/remove MATE Desktop Environment in Kali Linux
Read full details here:
How to install/remove MATE Desktop Environment in Kali Linux
How to install/remove MATE Desktop Environment in Kali Linux
MATE is a fork of GNOME 2. It provides an intuitive and attractive desktop environment using traditional metaphors for Linux and other Unix-like operating systems.
MATE is under active development to add support for new technologies...
Read the rest of it here: How to install/remove MATE Desktop Environment in Kali Linux
How to add official Kali Linux Repositories?
Read full details here:
How to add official Kali Linux Repositories?
How to add official Kali Linux Repositories?
This is a small guide on How to add official Kali Linux Repositories.
Kali Linux source.list Repositories page: Official Link
We’ve seen many people break their Kali Linux installations by following unofficial advice, or arbitrarily populating their s...
Read the rest of it here: How to add official Kali Linux Repositories?
How to add official Kali Linux Repositories?
Read full details here:
How to add official Kali Linux Repositories?
How to add official Kali Linux Repositories?
This is a small guide on How to add official Kali Linux Repositories.
Kali Linux source.list Repositories page: Official Link
We’ve seen many people break their Kali Linux installations by following unofficial advice, or arbitrarily populating their s...
Read the rest of it here: How to add official Kali Linux Repositories?
How to install/remove MATE Desktop Environment in Kali Linux
Read full details here:
How to install/remove MATE Desktop Environment in Kali Linux
How to install/remove MATE Desktop Environment in Kali Linux
MATE is a fork of GNOME 2. It provides an intuitive and attractive desktop environment using traditional metaphors for Linux and other Unix-like operating systems.
MATE is under active development to add support for new technologies...
Read the rest of it here: How to install/remove MATE Desktop Environment in Kali Linux
How to install/remove Cinnamon Desktop Environment in Kali Linux
Read full details here:
How to install/remove Cinnamon Desktop Environment in Kali Linux
How to install/remove Cinnamon Desktop Environment in Kali Linux
Cinnamon is a GTK+-based desktop environment. It originally started as a fork of the GNOME Shell, which is a user interface, and was initially developed by (and for) Linux Mint.
The Linux Mint development team was initially unsure...
Read the rest of it here: How to install/remove Cinnamon Desktop Environment in Kali Linux
How to install/remove LXDE Desktop Environment in Kali Linux
Read full details here:
How to install/remove LXDE Desktop Environment in Kali Linux
How to install/remove LXDE Desktop Environment in Kali Linux
LXDE is a free and open source desktop environment for Unix and other POSIX compliant platforms, such as Linux or BSD. The goal of the project is to provide a desktop environment that is fast and energy efficient. The name LXDE stands...
Read the rest of it here: How to install/remove LXDE Desktop Environment in Kali Linux
How to install/remove GNOME Desktop Environment on Kali Linux
Read full details here:
How to install/remove GNOME Desktop Environment on Kali Linux
How to install/remove GNOME Desktop Environment on Kali Linux
GNOME is a desktop environment and graphical user interface that runs on top of a computer operating system. It is composed entirely of free and open source software and is developed by both volunteers and paid contributors,...
Read the rest of it here: How to install/remove GNOME Desktop Environment on Kali Linux
How to install/remove LXDE Desktop Environment in Kali Linux
Read full details here:
How to install/remove LXDE Desktop Environment in Kali Linux
How to install/remove LXDE Desktop Environment in Kali Linux
LXDE is a free and open source desktop environment for Unix and other POSIX compliant platforms, such as Linux or BSD. The goal of the project is to provide a desktop environment that is fast and energy efficient. The name LXDE stands...
Read the rest of it here: How to install/remove LXDE Desktop Environment in Kali Linux
How to install/remove different KDE Desktop Environments in Kali Linux
Read full details here:
How to install/remove different KDE Desktop Environments in Kali Linux
How to install/remove different KDE Desktop Environments in Kali Linux
K Desktop Environment (KDE) was founded in 1996 by Matthias Ettrich, who was then a student at the Eberhard Karls University of Tübingen. At the time, he was troubled by certain aspects of the Unix desktop. Among his ...
Read the rest of it here: How to install/remove different KDE Desktop Environments in Kali Linux
How to install/remove XFCE Desktop Environment in Kali Linux
Read full details here:
How to install/remove XFCE Desktop Environment in Kali Linux
How to install/remove XFCE Desktop Environment in Kali Linux
XFCE is a free software desktop environment for Unix and Unix-like platforms, such as Linux, Solaris, and BSD. It aims to be fast and lightweight, while still being visually appealing and easy to use. It consists of separately...
Read the rest of it here: How to install/remove XFCE Desktop Environment in Kali Linux
How to permanently switch Desktop Environments
Read full details here:
How to permanently switch Desktop Environments
A small guide for How to Permanently Switching Desktop Environments in Linux.
Permanently Switch Desktop Environments
Use the following to make a selected Desktop Environment your primary one (i.e. Make Gnome or KDE etc. your default desktop environment.)
update-alternatives --config...
Read the rest of it here: How to permanently switch Desktop Environments
vi Cheat Sheet - Basic
Read full details here:
vi Cheat Sheet - Basic
This is a Basic vi Cheat Sheet. A small guide to help readers use vi editor more efficiently.
This part contains the simple vi commands.
vi is a screen-oriented text editor originally created for the Unix operating system. The portable subset of the behavior of vi and programs based on it, and...
Read the rest of it here: vi Cheat Sheet - Basic
How to install Firefox in Kali Linux
Read full details here:
How to install Firefox in Kali Linux
This is a small and quick guide on How to install Firefox in Kali Linux.
Mozilla Firefox is a free and open-source web browser developed for Windows, OS X, and Linux, with a mobile version for Android, by the Mozilla Foundation and its subsidiary, the Mozilla Corporation. Firefox uses the Gecko...
Read the rest of it here: How to install Firefox in Kali Linux
How to increase TX Power Signal Strength of WiFi
Read full details here:
How to increase TX Power Signal Strength of WiFi
This is a small guide on How to increase TX Power Signal Strength of WiFi
This guide contains 3 different methods to increase your TX Power or Signal Strength of your Wifi Wireless card. It also includes 2 ways to make those changes kick in at boot time so that you can enjoy the extra power...
Read the rest of it here: How to increase TX Power Signal Strength of WiFi
How to Install Flash in Kali Linux
Read full details here:
How to Install Flash in Kali Linux
How to Install Flash in Kali Linux
This is a small guide with instructions that users can copy paste and make Flash work in their Kali Linux. Copy paste supported instruction to make life simpler.
Now lets move on to instructions …
Instructions on How to Install Flash in Kali...
Read the rest of it here: How to Install Flash in Kali Linux
How to Install Java JDK in Kali Linux
Read full details here:
How to Install Java JDK in Kali Linux
How to Install Java JDK in Kali Linux
This is a small guide with instructions that users can copy paste and make Java work in their Kali Linux. Thanks to purehate for providing original instructions. I’ve modified his instruction to suit my needs and I hope this will benefit users as...
Read the rest of it here: How to Install Java JDK in Kali Linux
How to Monitor Laptop CPU Temperature and Hard Disk in Linux - CLI Command Line and Visual
Read full details here:
How to Monitor Laptop CPU Temperature and Hard Disk in Linux - CLI Command Line and Visual
This is a small guide on How to Monitor Laptop CPU Temperature and Hard Disk in Linux – CLI Command Line and Visual. In this guide we will show few methods to get temperatures.
Commonly used tools to Monitor Laptop CPU Temperature and Hard Disk:
cat temperature file. (no additional ...
Read the rest of it here: How to Monitor Laptop CPU Temperature and Hard Disk in Linux - CLI Command Line and Visual
How to check your Laptop Battery Status from CLI Command Line in Linux
Read full details here:
How to check your Laptop Battery Status from CLI Command Line in Linux
How to check your Laptop Battery Status from CLI Command Line in Linux
The tool used to check your Laptop Battery Status from CLI Command Line in Linux is called acpi.
ACPI (Advanced Configuration and Power Interface) is an open industry specification co-developed by Hewlett-Packard, Intel, M...
Read the rest of it here: How to check your Laptop Battery Status from CLI Command Line in Linux
Install AMD ATI Driver (fglrx) in Kali Linux 1.x
Read full details here:
Install AMD ATI Driver (fglrx) in Kali Linux 1.x
I always had issues with ATI/Intel gfx cards in pretty much every version of Linux I’ve used. Kali is no different. Following guide would help to resolve the problem for everyone with similar issues. Many thanks to ‘Sani Morphic’ for his original post. Also big thanks goes to...
Read the rest of it here: Install AMD ATI Driver (fglrx) in Kali Linux 1.x
How to benchmark Pyrit
Read full details here:
How to benchmark Pyrit
This is a short guide on How to benchmark Pyrit
Assuming you managed to setup CUDA and Pyrit correctly, move on to the code section.
If not, go back and follow this guide: How to Install Nvidia Kernel Module Cuda and Pyrit
Benchmarking Pyrit:
# pyrit benchmark
The Pyrit...
Read the rest of it here: How to benchmark Pyrit
How to Install Nvidia Kernel Module Cuda and Pyrit in Kali Linux
Read full details here:
How to Install Nvidia Kernel Module Cuda and Pyrit in Kali Linux
This will guide you through the process on installing Nvidia Cuda and Pyrit in Kali Linux
Download Pyrit and Cpyrit:
Nvidia Cuda Toolkit https://developer.nvidia.com/cuda-toolkit
I used the Version 5.5 Self Extracting Installer for 64-Bit OS.
pyrit http://pyrit.googlecode.com
cpyrit...
Read the rest of it here: How to Install Nvidia Kernel Module Cuda and Pyrit in Kali Linux
How to Install Avro Phonetic Keyboard or ibus-avro in Debian, Kali, LMDE (Mint) Linux
Read full details here:
How to Install Avro Phonetic Keyboard or ibus-avro in Debian, Kali, LMDE (Mint) Linux
ibus-avro
Avro Phonetic Bangla typing for Linux
ibus-avro is the port of popular Avro Phonetic Bangla typing method to Linux. This software works as an Engine (plugin) of IBus and let users type in English and on-the-fly transliterate them phonetically to Bangla.
Notable features of Avro...
Read the rest of it here: How to Install Avro Phonetic Keyboard or ibus-avro in Debian, Kali, LMDE (Mint) Linux
CLI ifconfig - How to setup IP addess from Command Line in Linux
Read full details here:
CLI ifconfig - How to setup IP addess from Command Line in Linux
Did you even had trouble with Network Manager or ifconfig and felt that you need to try to set up static IP address from command line / CLI ifconfig? I accidentally removed Gnome (my bad, wasn’t paying attention and did an apt-get autoremove -y .. how bad is that.. ) So I had a problem, I...
Read the rest of it here: CLI ifconfig - How to setup IP addess from Command Line in Linux
Pause Unpause Linux Boot Screen
Read full details here:
Pause Unpause Linux Boot Screen
How many time you wanted to pause unpause linux boot screen to check out some errors? This screen goes away too fast and you’re then prompted with login screen. Once logged in, you’re too busy doing something else that you completely forgot that error that slided through boot screen...
Read the rest of it here: Pause Unpause Linux Boot Screen
WPSCAN and quick wordpress security
Read full details here:
WPSCAN and quick wordpress security
This is a quick and simple guide utilizing wpscan to scan wordpress and fix some security issues. Very simple and easy to follow.
Readers: Please read WPSCAN and quick wordpress security – Fixing Direcroty Listing – Part 2 of this series that outlines on how to fix Directory...
Read the rest of it here: WPSCAN and quick wordpress security
Cracking Wifi WPA/WPA2 passwords using Reaver-WPS
Overview:
Read the rest of it here: Cracking Wifi WPA/WPA2 passwords using Reaver-WPS
Fixing PulseAudio configured for per-user sessions ... (warning) in Kali Linux and Debian
Read full details here:
Fixing PulseAudio configured for per-user sessions ... (warning) in Kali Linux and Debian
What is PulseAudio:
PulseAudio is a sound system for POSIX OSes, meaning that it is a proxy for your sound applications. It allows you to do advanced operations on your sound data as it passes between your application and your hardware. Things like transferring the audio to a different machine,...
Read the rest of it here: Fixing PulseAudio configured for per-user sessions ... (warning) in Kali Linux and Debian
Enable Laptop mode to save power and lower CPU temp
Read full details here:
Enable Laptop mode to save power and lower CPU temp
Laptop mode explained:
Laptop mode is used to minimize the time that the hard disk needs to be spun up, to conserve battery power on laptops. It has been reported to cause significant power savings.
Laptop mode is controlled by the knob /proc/sys/vm/laptop_mode. This knob is present for all...
Read the rest of it here: Enable Laptop mode to save power and lower CPU temp
Helpful ATIconfig fglrx commands
Read full details here:
Helpful ATIconfig fglrx commands
ATI Proprietary Linux Driver (ATIconfig fglrx) Features
The ATI Proprietary Linux driver (ATIconfig fglrx) provides TV Output support for ATI graphics cards that support TV out. The ATI Proprietary Linux (ATIconfig fglrx) driver also allows for the following monitor arrangements:
Single Head ...
Read the rest of it here: Helpful ATIconfig fglrx commands
How to install/remove different Desktop Environment or Window Manager in Kali Linux 1.x
Read full details here:
How to install/remove different Desktop Environment or Window Manager in Kali Linux 1.x
This guide explains how to install/remove different Desktop Environment or Window Manager in Kali Linux 1.x such as Gnome, KDE, XFCE, LXDE and MATE Desktops.
An X window manager is a window manager which runs on top of the X Window System, a windowing system mainly used on Unix-like ...
Read the rest of it here: How to install/remove different Desktop Environment or Window Manager in Kali Linux 1.x