-->

Linux Tools Together With Configurations For A Evolution Auto Amongst Debian Server Eight For Hacking Together With Pentesting

Linux Tools Together With Configurations For A Evolution Auto Amongst Debian Server Eight For Hacking Together With Pentesting

Make certain y'all convey the source of the kickoff DVD inserted inward your server thence majority Debian viii together with larn to the ascendency prompt/terminal.

Install VMware Tools inward a command:
apt-get install open-vm-tools
Press ENTER to each enquiry to validate the default choice.
Check Vmware tools alongside a command:
vmware-toolbox-cmd -v

Install the essential tools:
Make certain y'all convey the source of the kickoff DVD inserted inward your server then
Install the tools alongside the next commands:
apt-get install build-essential
apt-get install xinetd
apt-get install nmap snmp
apt-get install ntpdate
ntpdate europe.pool.ntp.org
Depending on your connection, it is possible that the NTP port is non allowed
(Wifi)

Install console access
Install SSH server, authorize beginning login together with start the service alongside the following
command:
apt-get install ssh
vi /etc/ssh/sshd_config
add :
PermitRootLogin Yes
service ssh start
You tin give the axe instantly log inward on your console server alongside PUTTY

Verify the DNS resolution
Try typing nslookup google.com together with thence y'all convey to larn an ip address
Retype the IP address y'all demand to larn names
If it’s doesn’t run edit the etc/resolv.conf inward social club to convey the right Dns Ip like
that :
search labs.intra
nameserver 208.67.220.220
nameserver 8.8.8.8

Stop your server! Remove the .iso file, thence that VMware Workstation does non boot into it, detect vmdk together with vmx file together with re-create it into a backup location. When y'all convey finish, y'all tin give the axe restart your server, opened upwardly a final into beginning account.

Installation of webserver:
Mysql
Install the mutual library for databases :
apt-get install dbconfig-common
Start a install ascendency :
apt-get install mysql-server mysql-common libmysqlclient-dev mysql-client
Choose a beginning mysql password (we select MysqlPassword)

Verify your Mysql yesteryear :
mysql –V
Verify your Mysql password yesteryear :
mysql –u beginning -p

Php
We launch the installation yesteryear :
aptitude install php5 libapache2-mod-php5 php5-mysql
We exercise a sample page to confirm that it’s run :
touch /var/www/html/phpinfo.php
echo “<?php phpinfo(); ?>” >> /var/www/html/phpinfo.php
Verify yesteryear opened upwardly a browser onto : http://localhost/phpinfo.php.

We install the complementary module :
aptitude install php5-curl php5-gd php5-intl php-pear php5-imagick php5-
imap php5-mcrypt php5-ps
aptitude install php5-pspell php5-recode php5-snmp php5-tidy php5-xmlrpc
php5-xsl

And nosotros install the php cache page : PHP APC to accelerate the making of php page :
aptitude install php-apc

phpmyadmin
Install it yesteryear :
aptitude install phpmyadmin
select Yes.
Confirm your MysqlPassword!
Follow the prompts!
Use Apache instead of lighttpd!

Try to opened upwardly http://localhost/phpmyadmin/ :
(here nosotros role beginning together with MysqlPassword)

For amend functioning larn to phpmyadmin directory
cd /usr/share/phpmyadmin
create config.inc.php
cp config.sample.inc.php config.inc.php
modify locahost yesteryear 127.0.0.1 into the file :

Ruby
Install Ruby on track :
aptitude install ruby2.1 ruby-dev libruby rubygems
verify your version yesteryear : cerise -v

Python
Install together with verify Python version :
apt-get install python-pip
apt-cache policy python python3
python -V

Ddclient
Install together with verify Dynamic Dns alongside ddclient package
apt-get install ddclient

Valid all questions yesteryear only pressing motion into fundamental (we vill configure alongside the CONF file)
vi /etc/ddclient.conf

OVH CONFIG FILE EXAMPLE:
 
# Configuration file for ddclient
mail=root # post all msgs to root
mail-failure=root # post failed update msgs to root
pid=/var/run/ddclient.pid # tape PID inward file.
cache=/tmp/ddclient.cache # Cache file
daemon=600 # depository fiscal establishment tally every 600 seconds
syslog=yes # log update msgs to syslog
## via our CheckIP server
use=web, web=checkip.dyndns.com, web-skip=‘IP Address’
## Enter your Ovh DynHost username together with password here
login=your-login # your Ovh DynHost username
password=your-password # your Ovh DynHost password
## This department requires no changes unless y'all demand to laid upwardly a default proxy server
protocol=dyndns2 # default protocol
server=www.ovh.com # default server
## Dynamic DNS hosts larn here
your.domaine.com

Conclusion
That it ! : You convey a powerfull Debian Template that y'all tin give the axe role instantly to brand opened upwardly source webserver !!!



You must modify somes file similar :

/etc/network/interfaces for the configuration of network :
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.2.200
netmask 255.255.255.0
gateway 192.168.2.2

/etc/hosts for FQDN (here my machine get upwardly are debian) :
127.0.0.1 localhost
192.168.2.200 debian.labs.intra debian

/etc/resolv.conf comprise dns ip address :
search labs.intra
nameserver 208.67.220.220
nameserver 8.8.8.8
nameserver 208.67.222.222
nameserver 8.8.4.4

/etc/hostname (contain hotname of your server) :
debian

Change beginning Mysql password :
Stop service
/etc/init.d/mysql stop
Go on condom mysql
mysqld_safe —skip-grant-tables &
open mysql
mysql -u root

Change Mysql password similar this :
mysql> role mysql;
mysql> update user laid upwardly password=PASSWORD(”MysqlPassword”) where
user=’root’;
mysql> even out privileges;
mysql> quit

stop MySQL service
/etc/init.d/mysql stop
And restart it :
/etc/init.d/mysql start

Python Script Test
python.php
<?php
$dir = dirname(__FILE__);
$result = exec(“/usr/bin/python “. $dir . “/python.py”);
print_r( $result);
?>

python.py
#!/usr/bin/env python
import sys
print(“Your Python version is %s.%s.%s” % sys.version_info[:3])






















Blogger
Disqus
Pilih Sistem Komentar

No comments

Advertiser