‏הצגת רשומות עם תוויות linux. הצג את כל הרשומות
‏הצגת רשומות עם תוויות linux. הצג את כל הרשומות

יום חמישי, 24 באפריל 2014

How to Hack/Reset Kali linux login password

Recently changed Kali Linux Log in Password and you have forgotten it. or May be You want to Hack someone's Kali Linux PC. I am giving you one full proof solution for both issues. I really don't know why Kali developers left a loophole behind the Kali Linux well i also want to tell you that this is also working with Backtrack. So doesn't matter you have forgotten your Backtrack Admin log in password or Kali Linux Admin Log in Password just follow below instruction.
1. First boot your kali linux and wait  untill the Grub will come,  As you will see the grub , then scroll down to recovery mode  then press E
                                                                   (click image for large view)

2. After pressing E you will see this screen. Here you have to change some words and need to add some sentence as shown in image 

3. After changing and adding just press F10

4. After pressing F10 it will be reboot and you will see this screen, Here you have to type a command passwd root and hit enter

5. Then type your new root password, hit enter and again retype your root password and hit enter afterthat you will see a massage password update successfully 

6. Now power off by pressing your laptop/PC power button and switch on it again and login with your new password 


Download test VMs of IE for Windows, Linux, OSX

Test versions of IE using Virtual Machines that you download and manage in your own development environment.

The Microsoft Software License Terms for the IE VMs are included in the release notes and supersede any conflicting Windows license terms included in the VMs.
By downloading and using this software, you agree to these license terms.


Getting started with VMs

Instructions

  1. Download the SFX and all RAR files for the VM (smaller VMs may not have files with RAR extension). In each set below that contains a split archive, the provided text file (.txt) contains URLs to all files in the set, and this can be used directly with the 'wget' command in Linux. From the terminal, enter wget -i [URL TO TEXT FILE]. For Windows XP single file downloads, use wget [URL TO DOWNLOAD FILE] instead.
    Example 1: wget -i https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/Linux/IE8_Win7/IE8.Win7.For.LinuxVirtualBox_2.txt
    Example 2: wget https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/Linux/IE6_XP/IE6.WinXP.For.LinuxVirtualBox.sfx
  2. After the download of all files for a set is complete, give the SFX file execute permission by typing chmod +x filename.sfx at the terminal.
  3. Execute the SFX executable from the terminal with ./filename.sfx to expand the virtual machine to the current directory.

Alternative Extraction Option

Regardless of the host platform that you are using, if you have problems using the self extracting archive, you can always install a program that can extract RAR files and use that to extract the VM.

יום רביעי, 26 בפברואר 2014

Setup NFS Server On CentOS 6.X

NFS, Network File System, is a server-client protocol used for sharing files between linux/unix to unix/linux systems. NFS enables you to mount a remote share locally. You can then directly access any of the files on that remote share.
nfs
Scenario
In this how-to I use two systems running with CentOS 6.5, but it will work on all CentOS / RHEL / Scientific Linux 6.x distros.
NFS Server IP Address: 192.168.1.250/24
NFS Client IP Address: 192.168.1.251/24
1. Install NFS in Server system
# yum install nfs* -y
 2. Start NFS service
# service rpcbind start
# chkconfig rpcbind on
hkconfig nfs on
# service nfs start
#
c
3. Install NFS in Client System
# yum install nfs* -y
4. Start NFS service
# service rpcbind start
# chkconfig rpcbind on
hkconfig nfs on
# service nfs start
#
c
5. Create shared directories in server
Create a shared directory named ‘/var/unixmen_share’ in server and let the client users to read and write files in that directory.
# mkdir /var/unixmen_share
# chmod 755 /var/unixmen_share/
6. Export shared directory on NFS Server
Edit file /etc/exports,
# vi /etc/exports
Add the entry as shown below.
/var/unixmen_share/     192.168.1.0/24(rw,sync,no_root_squash,no_all_squash)
 where,
/var/unixmen_share  – shared directory
192.168.1.0/24           – IP address range of clients
rw                               – Writable permission to shared folder
sync                            – Synchronize shared directory
no_root_squash          – Enable root privilege
no_all_squash             – Enable user’s authority
7. Restart the NFS service.
# service nfs restart
 8. Mount the share directory in client
Create a mount point to mount the share directory ‘var/unixmen_local’ which we created in the earlier step 5.
# mkdir /var/nfs_share
 Mount the share from server to client as shown below
# mount -t nfs 192.168.1.250:/var/unixmen_share/ /var/nfs_share/
mount.nfs: Connection timed out
Probably it will show a connection timed out error which means that the firewall is blocking NFS server. To allow NFS server to access from outbound, goto NFS server system and add the as shown below in the ‘etc/sysconfig/iptables’ file.
# vi /etc/sysconfig/iptables
Append the following lines shown in red colour.
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
-A INPUT -m state --state NEW -m tcp -p tcp --dport 2049 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 111 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 892 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 32803 -j ACCEP
T
-A INPUT -m state --state NEW -m tcp -p tcp --dport 875 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 662 -j ACCEP
T
INPUT ACCEPT [0:0]
::FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
tate ESTABLISHED,RELATED -j ACCEPT -A INPUT -p icmp -j
-A INPUT -m state --
sACCEPT
-A INPUT -i lo -j ACCEPT
tcp -p tcp --dport 22 -j ACCEPT -A INPUT -j REJECT --reject-with
-A INPUT -m state --state NEW -m
icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
Now restart the iptables service.
# service iptables restart
Again mount the share in client system with command:
# mount -t nfs 192.168.1.250:/var/unixmen_share/ /var/nfs_share/
Now the NFS share will mount without any connection timed out error.
9. Verify NFS
Verify the share from the server is mounted or not using ‘mount’ command.
# mount
Sample output:
/dev/mapper/vg_client-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
devpts on /dev/pts type devpt
sysfs on /sys type sysfs (rw) s (rw,gid=5,mode=620)
:object_r:tmpfs_t:s0") /dev/sda1 on /boot type ext4 (rw) none on /proc/sys
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_ u/fs/binfmt_misc type binfmt_misc (rw)
rpc_pipefs (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type
nfsd on /proc/fs/nfsd type nfsd (rw)
192.168.1.250:/var/unixmen_share/ on /var/nfs_share type nfs (rw,vers=4,addr=192.168.1.250,clientaddr=192.168.1.251)
10.  Automount the Shares
To mount the shares automatically instead of mounting them manually at every reboot, add the following lines shown in red colour in the ‘/etc/fstab’ file of your client system.
# vi /etc/fstab
#
# /etc/fstab
# Created by anaconda on Sun Mar 3 22[root@client unixmen]:10:15 2013
#
Accessible filesystems, by reference, are maintained under '/dev/disk' #
#
See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
dev/mapper/vg_client-lv_root / ext4 defaults 1 1
/
defaults 1 2 /dev/mapper/vg_client-lv_swap swap swap defaults 0 0
UUID=1aa7d041-056b-48f4-a773-f713759e981f /boot ext4
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
192.168.1.250:/var/unixmen_share/ /var/nfs_share/ nfs rw,sync,hard,intr 0 0
Reboot the client system and check the share whether it is automatically mounted or not.
# mount
Sample output:
/dev/mapper/vg_client-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
devpts on /dev/pts type devpt
sysfs on /sys type sysfs (rw) s (rw,gid=5,mode=620)
:object_r:tmpfs_t:s0") /dev/sda1 on /boot type ext4 (rw) none on /proc/sys
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_ u/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
192.168.1.250:/var/unixmen_share/ on /var/nfs_share type nfs (rw,vers=4,addr=192.168.1.250,clientaddr=192.168.1.251)
Thanks to: sk from unixmen

יום חמישי, 23 בינואר 2014

Reset vCenter Appliance root password

To reset the root user password in the vCenter Boot the virtual appliance and navigate to the console for the virtual machine in the vSphere Client. Click in the console and press any key to display the GRUB menu. 

Note: The GRUB prompt remains on screen for few seconds before it starts the boot sequence. 

On the GRUB menu, select SUSE Linux Enterprise Server for VMware.

Type e to edit the line. A list of items in the GRUB configuration file appears.

Select the line that starts with kernel and type e to edit the line.

At the end of the line, press the spacebar and type init=/bin/sh.

Press Enter to exit edit mode.

On the GRUB screen, type b to boot into single-user mode. 

The virtual appliance boots in single-user mode.

To change the root user password, type passwd root and follow the on-screen prompts.

To restart the virtual appliance, type reboot and press Enter.

When the virtual appliance restarts, you can log in using the new password.

יום חמישי, 2 בינואר 2014

Install Xplico on Kali-Linux 1.0.X

1.
apt-get install tshark python3.2-minimal python3-httplib2 apache2 php5-common libapache2-mod-php5 php5-sqlite php5-cli recode sox lame

2.
apt-get install python3.2-minimal python3-httplib2 php5-sqlite recode sox lame

3.
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz

4.
gunzip GeoLiteCity.dat.gz

5.
mv GeoLiteCity.dat /opt/xplico/

6.
/etc/init.d/apache2 restart

7.
service xplico start

8.
localhost:9876

יום שלישי, 21 במאי 2013

Add new hardware on Linux CentOS / Redhat - Persistent net rules

1.       Setup -->Text Mode Setup Utility -->Change Network Configuration IP & name
2.       Remove “HWADDR” form all ethX:
a.       Path: /etc/sysconfig/network-scripts/ifcfg-ethX
3.       Remove Persistent rules:
a.       Rm –rf  /etc/udev/rules.d/70-persistent-net.rules

יום שני, 13 במאי 2013

Extend an LVM root filesystem

#fdisk -l
#fdisk /dev/sdb
e8 
w

#lvdisplay
#pvcreate /dev/sdb2

#vgextend VolGroup00 /dev/sdb2
(this associates the physical volume with our volume group VolGroup00)
At this point our new partition is available in our volume group as free space.  We use the following command to confirm that and also to record the amount of free space:
#vgdisplay
From the output of this command we should see an entry called “Free PE” – this is the free physical extents (in other words our free space).  We can use this value to extend our existing logical volume LogVol00 for example (this shows 1234 free extents):
#lvextend -l +1234 /dev/VolGroup00/LogVol00
After this command completes the logical volume LogVol00 will be extended by the amount of free space our new partition has.  You can display this using the command:
#lvdisplay
You should notice the “LV size” has increased.  At this point our / filesystem still doesn’t know about the new space, so the last piece of the jigsaw is to let it know about the new space:
#resize2fs /dev/VolGroup00/LogVol00
Once this command completes our / filesystem should see our new free space.  You can confirm this using the command:
#df -h /

useful link:
http://geekswing.com/geek/unix/extending-a-linux-disk-with-lvm-extending-root-partition/


Intermission to add new disk and power on if necessary
# fdisk -l
To see the new disk size on /dev/sda which we just extended, or to see new disks we just presented (/dev/sdb, /dev/sdc, etc.)
# fdisk /dev/sda
To create new partitions for the OS to use. These new partitions will be added to the VG so we can extend the LV that the “/” partition is on. My newly created partition in the example is /dev/sda3. For new disks you would use /dev/sdb, or /dev/sdc. If you are using an extended /dev/sda like in my case, you will need to reboot for the changes to be seen
# fdisk -l
To see the new partitions
# pvdisplay
View current physical volumes a.k.a. pv
# pvcreate /dev/sda3
Allow Linux OS to use the new partition in LVM
# pvdisplay
See the new pv /dev/sda3
# vgdisplay
View the current volume groups
# vgextend vg_cents6364bit /dev/sda3
Add the new PV /dev/sda3 to the existing VG vg_cents6364bit
# vgdisplay
Now you can see the new size of the VG vg_cents6364bit. Note the new amount of free PE’s (physical extents)
# lvdisplay
View the current LV. In my example, /dev/vg_cents6364bit/lv_root which is the root partition
# lvextend -l +2559 /dev/vg_cents6364bit/lv_root
Now make the LV larger. Growing the LV /dev/vg_cents6364bit/lv_root by 2559 PEs
# lvdisplay
Now you can see the larger size of the LV
# resize2fs /dev/vg_cents6364bit/lv_root
Online resize of the actual filesystem now on that LV
# df -h
You can see the new size now using the “df” command

DONE!!