sudo add-apt-repository ppa:mozillateam/firefox-stable
sudo apt-get update
sudo apt-get upgradeThat's all! See you!
Open Source is a great idea and it has changed the world!
Open Source forever ....
While you do not know attack, how can you know about defense? (未知攻,焉知防?)
Do BAD things .... for the RIGHT reasons -- OWASP ZAP
It is easier to port a shell than a shell script. -- Larry Wall
Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris. -- Larry Wall
为天地立心, 为生民立命, 为往圣继绝学, 为万世开太平。 -- 王炜
sudo add-apt-repository ppa:mozillateam/firefox-stable
sudo apt-get update
sudo apt-get upgradesudo add-apt-repository ppa:libreoffice/ppasudo apt-get updatesudo apt-get install libreoffice-gtk libreoffice-gnome libreoffice-pdfimport libreoffice-officebean libreoffice-ogltrans libreoffice-wiki-publisher libreoffice-core libreoffice-mysql-connector libreoffice-base-core libreoffice-style-andromeda libreoffice-calc libreoffice-draw libreoffice-impress libreoffice-writer libreoffice-math libreoffice-common libreoffice-emailmerge libreoffice-l10n-common libreoffice-dtd-officedocument1.0 libreoffice-report-builder-bin libreoffice-style-hicontrast libreoffice-base libreoffice-java-common libreoffice-style-galaxy libreoffice-report-builder ttf-opensymbol libreoffice-presentation-minimizer libreoffice-style-crystal libreoffice-style-oxygen libreoffice-filter-mobiledev mozilla-libreoffice libreoffice-style-human libreoffice-style-tango python-uno ure uno-libs3 libreoffice-help-en-ussudo apt-get install libreoffice-l10n-zh-cn libreoffice-l10n-zh-tw libreoffice-help-zh-cn libreoffice-help-zh-twlibreoffice-gnome and libreoffice-gtk.sudo apt-get install libreoffice-kdesites/all/modules/contribute/.http://www.drupal.org/project/????
acl
# The following are for Google Adsense
adsense
adsense_injector
advanced_forum
advanced_forum_more_styles
advanced_help
advuser
author_pane
backup_migrate
bookmark_us
browscap
cck
composite
content_access
ctools
date
db_maintenance
emfield
fb
fckeditor
filefield
formblock
getid3
google_analytics
htmlmail
i18n
imageapi
imagecache
imagefield
jquery_ui
lang_dropdown
languageicons
lightbox2
login_security
media_youtube
mimemail
mobile_tools
mollom
mp3player
# The following are for online shop
nap
node_access_rebuild_bonus
options_element
panels
pathauto
phone
phpmailer
print
private
privatemsg
rules
security_review
select_or_other
signup
simpletest
sina_open
sitedoc
skinr
tablefield
theme_editor
token
# The following are for online shop
ubercart
uberpos
uc_addresses
uc_alipay
uc_coupon
uc_node_access
uc_node_checkout
uc_product_triggers
uc_views
user_delete
user_register_notify
views
views_bulk_operations
webform
webform_validation
wurfl
# The following are themes for mobile_tools
fusion
fusion_mobile
/etc/hiawatha/hiawatha.conf.Binding {
Port = 80
#Interface = 127.0.0.1
MaxKeepAlive = 30
TimeForRequest = 3,20
MaxRequestSize = 8192
MaxUploadSize = 30
}/etc/hiawatha/hiawatha.conf.UrlToolkit {
ToolkitID = drupal7
RequestURI exists Return
Match /favicon.ico Return
Match .* Rewrite /index.php
}UrlToolkit {
ToolkitID = drupal6
RequestURI exists Return
Match ^/favicon.ico$ Return
Match /(.*)\?(.*) Rewrite /index.php?q=$1&$2
Match /(.*) Rewrite /index.php?q=$1
}sudo nano /etc/hiawatha/enable-site/drupal7VirtualHost {
Hostname = localhost, 127.0.0.1
WebsiteRoot = /var/www/drupal7
StartFile = index.php
SecureURL = false
AccessLogfile = /var/log/hiawatha/access.log
ErrorLogfile = /var/log/hiawatha/error.log
TimeForCGI = 120
#UseFastCGI = PHP5
UseToolkit = drupal7
#DenyBody = ^.*%3Cscript.*%3C%2Fscript%3E.*$
ExecuteCGI = yes
PreventCSRF = yes
PreventSQLi = yes
PreventXSS = yes
TriggerOnCGIstatus = no
}sudo nano /etc/hiawatha/enable-site/drupal6VirtualHost {
Hostname = localhost, 127.0.0.1
WebsiteRoot = /var/www/drupal6
StartFile = index.php
SecureURL = false
AccessLogfile = /var/log/hiawatha/access.log
ErrorLogfile = /var/log/hiawatha/error.log
TimeForCGI = 120
#UseFastCGI = PHP5
UseToolkit = drupal6
#DenyBody = ^.*%3Cscript.*%3C%2Fscript%3E.*$
ExecuteCGI = yes
PreventCSRF = yes
PreventSQLi = yes
PreventXSS = yes
TriggerOnCGIstatus = no
}sudo /etc/init.d/hiawatha restartsudo tar -xzvf drupal-6.20.tar.gzsudo tar -xzvf drupal-7.0.tar.gzsudo mkdir /var/www/drupal6sudo mkdir /var/www/drupal7sudo cp ~/drupal-6.20/* /var/www/drupal6sudo cp ~/drupal-7.0/* /var/www/drupal7cd /var/www/drupal6cd /var/www/drupal7sudo chmod a+w sites/default
sudo mkdir sites/default/files
sudo chmod a+w sites/default/filessudo cp sites/default/default.settings.php sites/default/settings.php
sudo chmod a+w sites/default/settings.phpmysql -u root -pcreate database drupal;quitlocalhost" at the address field to continue the installation. The database name is "drupal".sudo chmod go-w sites/default
sudo chmod go-w sites/default/settings.phpsudo chmod a-r CHANGELOG.txtsudo crontab -e 0 * * * * wget -O - -q -t 1 http://localhost/cron.phpsudo crontab -e0 * * * * wget -O - -q -t 1 http://localhost/cron.php?cron_key=YOURKEYsudo nano /etc/hiawatha/hiawatha.confhiawatha.conf".UrlToolkit {
ToolkitID = cakephp
Match ^/app/webroot/ Skip 2
Match ^/app/(.*) Rewrite /$1 Continue
Match ^/(.*) Rewrite /app/webroot/$1 Continue
RequestURI exists Return
Match (.*)\?(.*) Rewrite $1&$2 Continue
Match ^/app/webroot/(.*) Rewrite /app/webroot/index.php?url=$1
}UrlToolkit {
ToolkitID = cakephp_apps
Match ^/webroot/ Skip 2
Match ^/(.*) Rewrite /$1 Continue
Match ^/(.*) Rewrite /webroot/$1 Continue
RequestURI exists Return
Match (.*)\?(.*) Rewrite $1&$2 Continue
Match ^/webroot/(.*) Rewrite /webroot/index.php?url=$1
}sudo nano /etc/hiawatha/enable-sites/mysiteVirtualHost {
Hostname = localhost, 127.0.0.1
WebsiteRoot = /var/www/mysite
StartFile = index.php
AccessLogfile = /var/log/hiawatha/access.log
ErrorLogfile = /var/log/hiawatha/error.log
TimeForCGI = 15
#UseFastCGI = PHP5
UseToolkit = cakephp_apps
DenyBody = ^.*%3Cscript.*%3C%2Fscript%3E.*$
ExecuteCGI = yes
PreventCSRF = yes
PreventSQLi = yes
PreventXSS = yes
}sudo apt-get install gitcd /var/wwwsudo git clone https://github.com/cakephp/cakephp.gitsudo nano /etc/environment:/var/www/cakephp/cake/console. /etc/environmentecho $PATHmysql -u root -pquitcd /var/wwwsudo sucake bake project myprojectcd /var/www/myprojectcake bake model all
cake bake controller all
cake bake view allexitcd /var/www/myproject/configsudo cp database.php.default database.phplogin", "password" and "database" accordingly to the MySQL root and password as well as database that you just created.localhost" at the address field.sudo apt-get install libwxgtk2.8-dev libwxbase2.8-0 wx-common wx2.8-headers libwxgtk2.8-0tar -xvzf poedit-1.4.6.1.tar.gz
cd poedit-1.4.6.1./configure
make
sudo make installcd /var/www/myprojectsudo sucake i18nE" and follows the instruction on screen. Then, select "I".default.pot" file is created at the /var/www/myproject/locale.exitpoedit" and open the file "default.pot". Translate the content to Traditional Chinese and then save to "default.po". A "default.mo" will also be created.sudo mkdir /var/www/myproject/locale/zh_TWsudo mkdir /var/www/myproject/locale/zh_TW/LC_MESSAGESsudo cp /var/www/myproject/locale/default.* /var/www/myproject/locale/zh_TW/LC_MESSAGES/cd /var/www/myproject/configsudo nano core.phpcore.php :Configure::write('Config.language', 'zh_TW');sudo /etc/init.d/hiawatha restartlocalhost/users", the content will be changed to Traditional Chinese.users" is a Controller and table of a database that you just create. "users" is just an example.apt-get install tor privoxynano /etc/privoxy/configforward-socks4a / localhost:9050 ./etc/init.d/privoxy start
/etc/init.d/tor starthttps://addons.mozilla.org/zh-TW/firefox/addon/torbutton/Use custom proxy settings"HTTP Proxy : 127.0.0.1 Port : 8118
SSL Proxy : 127.0.0.1 Port : 8118
SOCKS host : 127.0.0.1 Port : 9050Tor enable" at the right bottom of the Firefox to enable the Tor Button.apt-get install language-support-zh language-support-fonts-zh language-support-input-zh language-support-translations-zh language-pack-zh language-pack-zh-base language-pack-kde-zh language-pack-kde-zh-base kde-l10n-zhtwASPMX.L.GOOGLE.COM
ALT1.ASPMX.L.GOOGLE.COM
ALT2.ASPMX.L.GOOGLE.COM
ASPMX2.GOOGLEMAIL.COM
ASPMX3.GOOGLEMAIL.COMConfig/Networking/HostnameHostname : untangle.mydomain.com Hostname : untangle.mydomain.localConfig/Email/Outging Email Server (SMTP)Send Email using the specified SMTP Server
- Server Address or Hostname : <postifx server IP address>
- Server Port : 25sudo nano /etc/postfix/transport* smtp:[smtp.gmail.com]:587sudo nano /etc/postfix/sasl/sasl_passwd[smtp.gmail.com]:587 samiux@gmail.com:passwordsudo nano /etc/postfix/main.cfrelayhost = [smtp.gmail.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_use_tls = yes
mynetworks = 192.168.0.0/24 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128cat /etc/ssl/certs/Thawte_Premium_Server_CA.pem | sudo tee -a /etc/postfix/cacert.pemsudo postmap /etc/postfix/transport
sudo postmap /etc/postfix/sasl/sasl_passwdsudo /etc/init.d/postfix restartabout:configfalse" to "true" :network.http.pipelining
network.http.proxy.pipelining4" to "30" :network.http.pipelining.maxrequests0" : nglayout.initialpaint.delay*** WARNING : This tutorial is for education purpose only. It alert you to update your system once there is any patch or update available. Please do not hack any website, computer and/or network without authorization. Otherwise, you will be put into the jail. *** /etc/init.d/networking restart/etc/init.d/mysql start
cd /pentest/exploits/armitage
./armitage.shUse SSL" and click "Start MSF".Using database driver mysql" message box will be displayed. Click "OK".Host" -- "Nmap Scan" -- "Intense Scan, all TCP ports"Attacks" -- "Find Attacks" -- "by port".Attacks" -- "Hail Mary" -- "by port".Monitor" image to change to red colour. If so, the target is exploited. Then, right click on the "Monitor" image and select "Shell". To check if the target is privilege escalated by issuing "whoami" on the Shell. If it shows "root", you are successfully owned the target.sudo nano /etc/apt/sources.listdeb http://deb.torproject.org/torproject.org lucid maingpg --keyserver keys.gnupg.net --recv 886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -sudo apt-get install torsudo apt-get install privoxysudo nano /etc/privoxy/configforward-socks4a / localhost:9050 .forward 192.168.*.*/ .sudo /etc/init.d/privoxy start
sudo /etc/init.d/tor startnetstat -a | grep 9050tcp 0 0 localhost:9050 *:* LISTENTorButton" addon for Firefox. Then enable/disable it by Ctrl+2.sudo update-rc.d privoxy defaults
sudo update-rc.d tor defaultstar -xzvf asm_linux_x64_v6_50_18579.tgzcd managersudo apt-get install alien
alien --scripts StorMan-6.50.x86_64.rpm
sudo dpkg -i storman_6.50-18580_amd64.debsudo /usr/StorMan/StorMan.shcd /pentest/misc/dradis/server
ruby ./script/serverhttps://localhost:3004". Accepted the certificate. Enter your password twice. Then, login to the system with your desired username and the previous password.etd" and "dradis" respectively.nano /pentest/misc/dradis/client/conf/dradis.xml<option name='restful_user' value='etd'/>
<option name='restful_password' value='dradis'/>etd" and "dradis" according to the Step 1 above when necessary.cd /pentest/misc/dradis/client
ruby ./dradis.rbdradis>" prompt will be displayed./etc/init.d/mysql startmsfconsolemsf>" prompt, enter the following :db_driver mysqldb_connect root:toor@127.0.0.1/msf3load db_tracker192.168.56.101" with NMap.nmap -v -sV 192.168.56.101 -oA subnet_1db_import subnet_1.xmldb_host
db_servicesdradis>" prompt. Issue the following command :import nmap /root/subnet_1.gnmap grepabletar -xzvf rtl8192se_linux_2.6.0019.1207.2010.tar.gzcd rtl8192se_linux_2.6.0019.1207.2010make
make installcp -Ra ~/rtl8192se_linux_2.6.0019.1207.2010/firmware/RTL8192SE/ /lib/firmwaredepmod -a
modprobe r8192se_pci
ifconfig wlan0 upMenu" -- "Internet" -- "Wicd Network Manager".Preference". Add "wlan0" to "Wireless interface".Refresh" button. Now, you should see the Access Points in the air. Select your desired Access Point, entered password and surf the internet.http://spamhaus.org/query/bl?ip=218.191.114.234Remove an IP from PBL" button. Usually, SBL and XBL are in green colour. Remove IP address" button. Finally, fill in the blanks and wait for the confirmation email for the confirmation code to fill into the screen provided after you sent the request.Step 9 for details).root" and password is the password that you created during the installation.Configuration" -- "System". Bind the phyiscal network interfaces to virtual interfaces. vmbr0 is binded to eth0 (IP : 192.168.100.2, subnet mask : 255.255.255.0, Gateway : 192.168.100.1). vmbr1 is binded to eth1 and vmbr2 is binded to eth2. You are required to reboot your system after the network interfaces binding.VM Manger" -- "ISO Images". Upload the Ubuntu 10.10 Server ISO file (for example) to the Proxmox. Assumed that we are using KVM for the virtualization.VM Manager" -- "Virtual Machines". Create a virtual machine by selecting "Create" tab. Create" button. VMD 101" is created. Select it and you will direct to the details of "KVM 101". Change the value of CPU Sockets and Cores/Socket when necessary. Hardware" tab and add the Ubuntu server ISO image to the "CD-ROM drives".Start" button. Then click on the red coloured "Open VNC console". Java is required for this operation.aptitude update
aptitude upgrade
aptitude install proxmox-ve-2.6.35cd /boot
rm *-2.6.32-4*
update-grub*** CAUTION : This tutorial is written for Penetration Test only. Otherwise, you may be arrested if you attack/intrude any other network/computer without authorization. ***http://dlc.sun.com/virtualbox/vboxdownload.html#linuxNAT" while the second is set to "Host-Only".install.sh" to install Back|Track. root" and the password is "toor".fix-splash800root" while the password is "toor".kate /root/.bash_profilestart-network
startxKonqueror" -- "Storage Media" -- "media:/hdc".bash VBoxLinuxAdditions-x86.runapt-get -y update
apt-get -y upgradeMenu" -- "BackTrack" -- "Penetration" -- "Fast Track". Select "Fast-Track Interactive" and choose "1".Menu" -- "BackTrack" -- "Penetration" -- "ExploitDB". Select "Update Exploitdb".Menu" -- "BackTrack" -- "Penetration" -- "Social Engineering Toolkit". Select "S.E.T-Update".airodump-ng-oui-updateMenu" -- "BackTrack" -- "Vulnerability Identification" -- "OpenVAS" -- "OpenVAS NVT Sync".apt-get -y install crark
apt-get -y install wbox
apt-get -y install vlccd /pentest/exploits/framework3/
svn upMetasploitable" which is an Ubuntu 8.04 server with some flaws.http://blog.metasploit.com/2010/05/introducing-metasploitable.htmlHost-Only". The virtual hard disk space is at least 8GB and 512MB RAM for the Metasploitable./etc/init.d/networking restartsudo apt-get install zenity ghostscriptcd ~/.gnome2/nautilus-scripts
wget http://launchpad.net/compress-pdf/1.x/1.1/+download/Compress-PDF-1.1.tar.gz
tar zxvf Compress-PDF-1.1.tar.gzscript" and "Compress PDF" on the menu.Default" and click "OK".