 | SheLLniX | Apr 5, 2009 |
ก็อยากมีอะไรแบบว่าเอาไว้แบ่งปันให้คนอื่นบ้าง เช่น โปรแกรม หนังสือ หรืออะไรต่างๆ ที่เจอะเจอมา จะเอามารวมๆไว้ใน multiply ก็แล้วกัน ส่วนใครที่ผ่านไปมาก็มาช่วยแสดงความคิดเห็นกันหน่อย นะครับ Don't know your GNU/Linux skill, but to remove partitions you can use proxmox-ve:~# fdisk /dev/sdb use 'p' to have a partition list, and 'd' to delete partitions (of course you will loose everything you have on /dev/sdb!) and finally 'w' to write partition table and exit then: create the physical volume: proxmox-ve:~# pvcreate /dev/sdb Physical volume "/dev/sdb" successfully created proxmox-ve:~# Second, create a volume group (vg): proxmox-ve:~# vgcreate second-lvm /dev/sdb Volume group "second-lvm" successfully created proxmox-ve:~# And finally: Add the LVM Group to the storage list via the web interface: "Storage name: newstorage", "Base storage: Existing volume groups", "Volume Group Name: second-lvm" The "second-lvm" and "newstorage" are fantasy names you can choose whatever you want (of course, with plain [a-z][0-9] and '-', not fancy characters!
ที่มา http://forum.proxmox.com/threads/5953-2nd-hdd เป็นการ mount harddisk ง่ายๆ โดยใช้ค่า uuid ของตัว harddisk เอง ซึ่งจะแตกต่างกับการที่ให้ ubuntu ไปเจอเอง (เหมือนกับการเอาพวก flash drive มาเสียบ) ไปหามาจากที่อื่น ลองทำดู ครับ ที่มา http://www.cyberciti.biz/faq/linux-finding-using-uuids-to-update-fstab/ List all UUIDs Use blkid command-line utility to locate/print block device attributes: $ sudo blkid Sample output: /dev/sda1: TYPE="ntfs" UUID="A0F0582EF0580CC2" /dev/sda2: UUID="8c2da865-13f4-47a2-9c92-2f31738469e8" SEC_TYPE="ext2" TYPE="ext3" /dev/sda3: TYPE="swap" UUID="5641913f-9bcc-4d8a-8bcb-ddfc3159e70f" /dev/sda5: UUID="FAB008D6B0089AF1" TYPE="ntfs" /dev/sdb1: UUID="32c61b65-f2f8-4041-a5d5-3d5ef4182723" SEC_TYPE="ext2" TYPE="ext3" /dev/sdb2: UUID="41c22818-fbad-4da6-8196-c816df0b7aa8" SEC_TYPE="ext2" TYPE="ext3"
How do I use UUID to update /etc/fstab file? Simply use following syntax: UUID={YOUR-UID} {/path/to/mount/point} {file-system-type} defaults,errors=remount-ro 0 1 Open /etc/fstab: $ sudo vi /etc/fstab Append line as follows: UUID=41c22818-fbad-4da6-8196-c816df0b7aa8 /disk2p2 ext3 defaults,errors=remount-ro 0 1 Save and close the file. To mount new partition immediately using /etc/fstab type: $ sudo mount -a ใครที่เป็นคอเกี่ยวกับ Computer Security สามารถลองความสามารถของท่านได้แล้ว
อ่านรายละเอียดเพิ่มเติมได้ที่นี่ http://citecclub.org/levelcwh3
ใน Backtrack 4 นั้นเวลาเราทำการติดตั้งลง hdd เสร็จแล้ว ในส่วนของ network จะมีการรอรับไอพีแอดเดรสจาก dhcp ถ้าเราต้องการที่จะกำหนดค่าแบบ static ต้องไปกำหนดเองดังนี้
1. ไปกำหนดค่าไอพีแอดเดรสที่ eth0 ใน /etc/network/interfaces
ตัวอย่าง auto eth0 iface eth0 inet static address 192.168.1.xx netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1
2. สามารถทำการสั่งสตาร์ทเน็ตเวิร์คใหม่ด้วยคำสั่งนี้
/etc/init.d/networking start
3. ถ้ามีการ reboot เครื่องใหม่เน็ตเวิร์คของเรา eth0 จะยังไม่ทำงาน ต้องมาทำตามคำสั่งข้อ 2 หรือต้องการแบบอัตโนมัติทุกครั้งที่มีการ reboot เครื่องใหม่ก็ใช้คำสั่งดังนี้
sudo /usr/sbin/update-rc.d networking defaults
4. อย่าลืมใส่ไอพีของ dns ด้วยนะที่ /etc/resolv.conf อีกที่นึงด้วยนะ
เอาไว้เตือนกันลืมอะ ครับ
New added softwares: + ATF Cleaner 3.0.0.2: A personal and easy-to-use temp file removal software to clean all user temp folders, Java cache, Opera/Mozilla browser cache, cookies, history, download history, saved passwords etc (Windows Freeware). + Avira AntiVir Personal (07-11-2010): Free anti-virus and anti-spyware on-demand scanner, detects and removes more than 50000 viruses (Windows Freeware). + BIOS Master Password Generator: Collection of password generator tools to reset BIOS Power on Password / Admin password on Dell, Fujitsu Siemens, Compaq, Hewlett Packard, Phoenix and Samsung Laptops (Windows Freeware). + Duplicate File Finder 3.5: Scans and identify duplicate files, it compares them based on byte for byte comparison ensures 100% accuracy (Windows Freeware). + Everything 1.21: Ultra fast file/folder search tool with ftp/http server (Windows Freeware). + GoldMemory 5.07: Memory Diagnostic Tests (Dos Shareware). + HDD Low Level Format Tool 2.36: Low-level format tool for S-ATA (SATA), IDE (E-IDE), SCSI, USB, Flash Cards and FIREWIRE external drive enclosures (Windows Freeware). + HashMyFiles 1.68: Calculate MD5/SHA1/CRC32 hashes of your files (Windows Freeware). + ImgBurn 2.5.2.0: Lightweight CD/DVD/HD DVD/Blu-ray burning application, supports BIN, CUE, DI, DVD, GI, IMG, ISO, MDS, NRG and PDI, Ability to build DVD/HD/BD Video discs from a VIDEO_TS/HVDVD_TS/BDAV/BDMV folder, Unicode folder/file names (formerly DVD Decrypter) (Windows Freeware). + Macrium Reflect 4.2.2952 (MiniXp): Create complete backups of your disk partitions, including operating system, installed programs and all your settings (Windows Freeware). + NTPWEdit 0.3: Password editor for Windows NT based systems to change or remove passwords for local system accounts (Windows Freeware). + On-Screen Keyboard: A utility that displays a virtual keyboard on the computer screen that allows people with mobility impairments to type data by using a pointing device or joystick (Windows Freeware). + RKill (24-10-2010): RKill just kills malware processes, imports a Registry file that removes incorrect file associations and fixes policies that stop us from using certain tools (Windows Freeware). + Revo Uninstaller 1.90: Remove unnecessary files and registry entries left behind by incomplete program uninstallation routines (Windows Freeware). + RunAsDate 1.10: allows you to run a program in the date and time that you specify (Windows Freeware). + Seagate DiscWizard 11.8326: Backup drive/partition to an image file, for Seagate owners (Powered by Acronis TrueImage) (Windows/Linux Freeware). + ServiWin v1.40: Alternative Windows Services/Drivers Tool (Windows Freeware). + ShadowExplorer 0.7: Shadow Explorer allows you to browse the shadow copies created by the Windows Volume Shadow Copy Service and retrieve older versions from files you accidentally deleted or altered (Windows Freeware). + SpaceSniffer 1.1.2.0: Find lost space on your disks the easy way (Windows Freeware). + WinSCP 4.2.9: A free and open source SFTP/FTP client to secure file transfer between a local and a remote computer (Windows Freeware). Download http://www.hirensbootcd.org/download/Hirens.BootCD.12.0.zip พอดีต้องการใช้ terminal ในการอับเดต package ไรพวกเนี็ย แต่ว่าการใช้อินเตอร์เน็ตมันต้องวิ่งผ่าน proxy ของบริษัท และก็ต้องมี user และ password ในการใช้งานด้วยอะดิ ซึ่งการกำหนดค่าใน browser นั้นสำหรับ proxy จะไม่ค่อยยุ่งยากอะไรซักเท่าไหร่ ส่วนการใช้ network อื่นเช่น terminal , synaptic package manager ในการอับเดตที่ต้องกำหนดค่าผ่าน proxy นั้น ต้องทำอย่างไร มาดูกัน ครับ รายละเอียด - ubuntu 10.10 ขั้นตอนสำหรับ terminal 1. ไปกำหนดค่าใน system > preference > network proxy ก่อนเลย (กำหนด user และ password ตรง details ด้วยนะ)  2. ลองทำการใช้คำสั่ง sudo apt-get update ใน terminal ดูก่อนแล้วกัน  จะข้อความแจ้งเกี่ยวกับว่าตัวไม่สามารถทำการอับเดตได้เพราะตัว proxy มีการ authen ไว้ ทั้งที่ก่อนหน้านี้เราก็ได้มีการใส่ user และ password ใน network proxy ไว้แล้วนี่น่า จริงๆแล้วเมื่อเรากำหนดค่าไปแล้วจะมีการไปสร้างไฟล์คอนฟิก apt.conf ไว้ใน /etc/apt/ ซึ่งเราต้องเข้าไปแก้ไขค่าในส่วนนี้เพิ่มเติมโดยใส่ user และ password ของเราลงไปหน้าตัว proxy server Acquire::http::proxy "http://user:password@192.168.xx.xx:8080/";  3. ลองทำการทดสอบอีกครั้งด้วยคำสั่ง sudo apt-get update  ขั้นตอนสำหรับ synaptic package manager 1. อันนี้จะคล้ายกับการเซ็ทใน browser เลย ให้ไปที่ system > administration > synaptic package manager > settings > preferences > network และก็กำหนดค่าลงไป  2. จากนั้นก็ลองทดสอบดูนะ ครับ แค่นี้แหละ ไม่ยากอย่างที่คิด Development on FreeBSD RELENG_8. Release, depending on timeframe may be based on a RELENG_8 snapshot or 8.1-RELEASE Migrate off m0n0wall -
Add support for ada and ahci SATA drivers (Native Command Queuing, SATA interface Power Management, device hot-plug and Message Signaled Interrupts) Add optional SoftUpdates + Journaling support to UFS2 filesystems Migration path/tool for previous releases and configurations Preservation of all existing features of the current FreeNAS release Refactor FreeNAS build system to allow building FreeNAS without affecting the host environment FreeNAS package support. Binary one click installs that modify the GUI dynamically.
Ref. http://freenas.org/roadmap หัวข้อนี้ใครๆหลายคนคงอยากบอกว่าได้พวกโลกแคบ (555) มาบล๊อคทำไม เค้าไปถึงไหนกันแล้ว แต่อย่างว่านะบางคนเล่นจนเสียการเสียงาน ทำให้หัวหน้างานเหลืออด กรูจ้างมาทำงานหรือให้มานั่งเล่น facebook กันหวะเนี๊ย เหอๆ งานมันก็เลยมาถึงเราชาวไอที ช่วยบล๊อค facebook เครื่องนี้ให้หน่อยดิ เล่นกันทั้งวัน ไม่ค่อยทำงาน ซึ่งอันนี้เราก็ต้องจัดให้กันหน่อย (เรื่องบล๊อคเนี่ยชอบ เพราะลดการใช้แบนวิดท์อะนะ) รายละเอียด - squid 2.7 - freebsd 7.2 ขั้นตอนง่ายๆ 1. สร้างไฟล์ facebook.txt ไว้ในพาทที่เราต้องการ (เอาไว้ใส่ไอพีเครื่องที่จะ block) หรือ block ทั้ง เน็ตเวิร์คเลยก็ได้นะ (ก็ไม่ต้องสร้างไฟล์นี้) 
2. เราก็ไปสร้าง acl บน squid.conf ทั้งหมด 3 บรรทัด กันดังนี้ - acl banned_clients src "/usr/local/squid/etc/facebook.txt" - acl sucky_url dstdomin .facebook.com - http_access deny banned_clients sucky_url รูปตัวอย่าง 

หรือใครต้องการ block ทั้งวงหรือช่วงไอพีก็ได้นะ ให้แก้บรรทัดแรกเป็น - acl banned_clients src 192.168.1.0/255.255.255.0 (ทำการ block ทั้งวงเน็ตเวิร์ค) - acl banned_clients src 192.168.1.10-192.168.1.20 (ทำการ block ไอพีเบอร์ 10 - 20) 3. จากนั้นก็ไปกำหนดไอพีที่ต้องการบล๊อคที่ไฟล์ facebook.txt (ไอพีละบรรทัดนะ) 
4. ไม่มีอะไรผิดพลาดก็น่าจะจัดการได้แหละ ครับ :p 
คลอดแล้วสำหรับ magazine สำหรับชาว hacker
อ่านง่ายๆได้แล้วที่ http://citecclub.org/hackazine
อ่านรายละเอียดเพิ่มเติมได้ที่ http://citecclub.org/forum/citec-hackazine-251/%E0%B8%9A%E0%B8%97%E0%B8%84%E0%B8%A7%E0%B8%B2%E0%B8%A1%E0%B9%83%E0%B8%94%E0%B8%99%E0%B9%88%E0%B8%B2%E0%B8%AA%E0%B8%99%E0%B9%83%E0%B8%88%E0%B9%83%E0%B8%99-citec-hackazine-45144/ หายไปซะนาน (แบบว่าไม่ค่อยมาอัพเดตบทความอะนะ) :p ก็ไม่เป็นไร รู้อะไรก็มาเขียนเพิ่มไปแล้วกัน เรื่อยๆ ๕๕ วันนี้ติดตั้ง Ubuntu ใหม่ และอยากฟังเพลง ผมเลยลงเจ้าตัวฟังเพลงที่ชื่อว่า Exaile (ที่แบบคุ้นเคยกับมันอยู่) แต่คราวนี้ลงไปแล้วฟ้องหา decoder ซะงั้น ก็ไม่เป็นไรถามหาจากเทพกรูแล้วกัน สรุปแล้วเค้าให้ไปลงตัว decoder เพิ่มเติมดังนี้ 1. รูปแสดงตอนที่ฟ้องบอกว่าคุณฟังไม่ได้นะไม่มีตัว decoder  2. ผมลงตัว decoder เพิ่มจาก Synaptic Package Manager เพิ่มเติม ตามรูป นะ 
3. ทดลองฟังเพลงสุดท้ายของแคลชเลยแล้วกัน T T

อ้างอิงการแก้ปัญหาจากที่นี่นะจ๊ะ http://www.exaile.org/wiki/Exaile:Faq#Exaile_says_I_don.27t_have_the_needed_decoder.2C_or_i_might_need_plugins_to_play_this_file._What_does_that_mean.3F พอดีวันนี้เพิ่งเห็นว่ามันออกมาใหม่แล้วสำหรับเวอร์ชั่น 11.0 ใครที่เป็นแฟน Hiren's BootCD ก็ลองโหลดเอาไปทดสอบกันดู นะครับ New added softwares:- Autologon 3.0: Enables you to easily configure Windows' built-in autologon mechanism, so you don't have to wait on the login screen (Windows Freeware).
- BellaVista 1.1.0.47: Formerly BCD Editor with lots of options to configure Windows for a developer (Windows Freeware).
- DiskDigger 0.8.3.176: Undelete and recover lost photos, videos, music, documents and other formats from your hard drive, memory cards and USB flash drives (Windows Freeware).
- DiskView 2.4: to view graphical map of your disk, allowing you to check where a file is located or, by clicking on a cluster, seeing which file occupies it (Dos Freeware).
- grub4dos 2010-08-04: an universal boot loader based on GNU GRUB, can boot off DOS/LINUX or via Windows boot manager/syslinux/lilo or from MBR/CD, builtin BIOS disk emulation (Linux Freeware).
- HBCD Customizer 1.3: HBCDCustomizer.exe is a GUI tool to create custom iso images of Hiren's BootCD (Windows Freeware).
- IE PassView 1.20: It allows you to view username and passwords saved by Internet Explorer (Windows Freeware).
- isolinux 4.02: a boot loader for Linux/i386 that operates off ISO 9660/El Torito CD-ROMs in 'no emulation' mode (Linux Freeware).
- MemDisk 4.02: to allow booting legacy operating systems, floppy images, hard disk images and some ISO images (Linux Freeware).
- PasswordFox 1.20: Allows you to view the user names and passwords stored by Mozilla Firefox Web browser (Windows Freeware).
- PLoP Boot Manager 5.0.10: a small program to boot different operating systems harddisk, floppy, CD/DVD or from USB, it can boot from an USB/CD/DVD even without BIOS support (Linux Freeware).
- PuTTY 0.60: a free and open source terminal emulator application which can act as a client for the SSH and Telnet (Windows Freeware).
- Remove Fake Antivirus 1.66: a tool to remove virus/malwares which disguises itself to be an antivirus and produces fake alert/warnings and urge you to purchase a useless copy of the fake antivirus (Windows Freeware).
- ShadowCopy 1.00: Copy all your files and entire system: even if they are locked by Windows (Windows Freeware).
- SmartSniff 1.63: Network monitoring utility that allows you to capture TCP/IP packets that pass through your network adapter (Windows Freeware).
- SniffPass 1.11: A password monitoring tool that listens to your network, capture the passwords that pass through your network adapter, it works on POP3, IMAP4, SMTP, FTP, and HTTP protocols and recovers lost Web/FTP/Email passwords (Windows Freeware).
- Victoria 4.46: Universal program for testing storage devices (Windows Freeware).
- Western Digital Data Lifeguard Tools 1.21: to perform drive identification, diagnostics, and repairs on most WD drives (Windows Freeware).
- XXClone 0.58.0: The simple way to clone a Windows disk to another disk, it makes a self-bootable clone of Windows system disk (Windows Freeware).
Download http://hotfile.com/dl/61108995/b367824/Hirens_BootCD_11.0.rar.html หรือ http://depositfiles.com/files/bh1ggbk5m เมื่อเราทำการติดตั้งเจ้า freebsd แล้ว ส่วนใหญ่เราจะเปิด ssh ไว้ด้วย เพื่อทำการ remote เข้าไปคอนฟิกผ่านเครื่องลูกข่าย ซึ่งยังสามารถที่จะทำการ upload ไฟล์ต่างๆไปยัง server ของเราได้ด้วย แต่การที่จะใช้ root ทำการ login เข้าไปนั้นมันยังไม่ยอม แต่มีวิธีสามารถให้ root ทำการ login ง่ายๆ ดังนี้
1. เข้าไปแก้ที่ไฟล์ sshd_config ใช้คำสั่งดังนี้ # ee /etc/ssh/sshd_config
2. ประมาณบรรทัดที่ 48 ให้เราเอาเครื่องหมาย # ข้างหน้าออก และเปลี่ยนจาก no เป็น yes #PermitRootLogin no >> ค่าเดิม PermitRootLogin yes >> ใส่ค่านี้ลงไปใหม่
3. ทำการ reboot ซักรอบนะ
4. จากนั้นก็ลองใช้ winscp ที่เครื่องลูกทำการ login เข้ามาดูนะ
แค่นี้แหละ
ปล. เรื่องของความไม่ปลอดภัย ไม่ควรใช้สิทธิ์ของ root login มาจากเครื่องอื่นๆ นะจ๊ะ This is a list of handy MySQL commands that I use time and time again. At the bottom are statements, clauses, and functions you can use in MySQL. Below that are PHP and Perl API functions you can use to interface with MySQL. To use those you will need to build PHP with MySQL functionality. To use MySQL with Perl you will need to use the Perl modules DBI and DBD::mysql. Below when you see # it means from the unix shell. When you see mysql> it means from a MySQL prompt after logging into MySQL. To login (from unix shell) use -h only if needed. # [mysql dir]/bin/mysql -h hostname -u root -p Create a database on the sql server. mysql> create database [databasename]; List all databases on the sql server. mysql> show databases; Switch to a database. mysql> use [db name]; To see all the tables in the db. mysql> show tables; To see database's field formats. mysql> describe [table name]; To delete a db. mysql> drop database [database name]; To delete a table. mysql> drop table [table name]; Show all data in a table. mysql> SELECT * FROM [table name]; Returns the columns and column information pertaining to the designated table. mysql> show columns from [table name]; Show certain selected rows with the value "whatever". mysql> SELECT * FROM [table name] WHERE [field name] = "whatever"; Show all records containing the name "Bob" AND the phone number '3444444'. mysql> SELECT * FROM [table name] WHERE name = "Bob" AND phone_number = '3444444'; Show all records not containing the name "Bob" AND the phone number '3444444' order by the phone_number field. mysql> SELECT * FROM [table name] WHERE name != "Bob" AND phone_number = '3444444' order by phone_number; Show all records starting with the letters 'bob' AND the phone number '3444444'. mysql> SELECT * FROM [table name] WHERE name like "Bob%" AND phone_number = '3444444'; Show all records starting with the letters 'bob' AND the phone number '3444444' limit to records 1 through 5. mysql> SELECT * FROM [table name] WHERE name like "Bob%" AND phone_number = '3444444' limit 1,5; Use a regular expression to find records. Use "REGEXP BINARY" to force case-sensitivity. This finds any record beginning with a. mysql> SELECT * FROM [table name] WHERE rec RLIKE "^a"; Show unique records. mysql> SELECT DISTINCT [column name] FROM [table name]; Show selected records sorted in an ascending (asc) or descending (desc). mysql> SELECT [col1],[col2] FROM [table name] ORDER BY [col2] DESC; Return number of rows. mysql> SELECT COUNT(*) FROM [table name]; Sum column. mysql> SELECT SUM(*) FROM [table name]; Join tables on common columns. mysql> select lookup.illustrationid, lookup.personid,person.birthday from lookup left join person on lookup.personid=person.personid=statement to join birthday in person table with primary illustration id; Creating a new user. Login as root. Switch to the MySQL db. Make the user. Update privs. # mysql -u root -p mysql> use mysql; mysql> INSERT INTO user (Host,User,Password) VALUES('%','username',PASSWORD('password')); mysql> flush privileges; Change a users password from unix shell. # [mysql dir]/bin/mysqladmin -u username -h hostname.blah.org -p password 'new-password' Change a users password from MySQL prompt. Login as root. Set the password. Update privs. # mysql -u root -p mysql> SET PASSWORD FOR 'user'@'hostname' = PASSWORD('passwordhere'); mysql> flush privileges; Recover a MySQL root password. Stop the MySQL server process. Start again with no grant tables. Login to MySQL as root. Set new password. Exit MySQL and restart MySQL server. # /etc/init.d/mysql stop # mysqld_safe --skip-grant-tables & # mysql -u root mysql> use mysql; mysql> update user set password=PASSWORD("newrootpassword") where User='root'; mysql> flush privileges; mysql> quit # /etc/init.d/mysql stop # /etc/init.d/mysql start Set a root password if there is on root password. # mysqladmin -u root password newpassword Update a root password. # mysqladmin -u root -p oldpassword newpassword Allow the user "bob" to connect to the server from localhost using the password "passwd". Login as root. Switch to the MySQL db. Give privs. Update privs. # mysql -u root -p mysql> use mysql; mysql> grant usage on *.* to bob@localhost identified by 'passwd'; mysql> flush privileges; Give user privilages for a db. Login as root. Switch to the MySQL db. Grant privs. Update privs. # mysql -u root -p mysql> use mysql; mysql> INSERT INTO db (Host,Db,User,Select_priv,Insert_priv,Update_priv,Delete_priv,Create_priv,Drop_priv) VALUES ('%','databasename','username','Y','Y','Y','Y','Y','N'); mysql> flush privileges;
or
mysql> grant all privileges on databasename.* to username@localhost; mysql> flush privileges; To update info already in a table. mysql> UPDATE [table name] SET Select_priv = 'Y',Insert_priv = 'Y',Update_priv = 'Y' where [field name] = 'user'; Delete a row(s) from a table. mysql> DELETE from [table name] where [field name] = 'whatever'; Update database permissions/privilages. mysql> flush privileges; Delete a column. mysql> alter table [table name] drop column [column name]; Add a new column to db. mysql> alter table [table name] add column [new column name] varchar (20); Change column name. mysql> alter table [table name] change [old column name] [new column name] varchar (50); Make a unique column so you get no dupes. mysql> alter table [table name] add unique ([column name]); Make a column bigger. mysql> alter table [table name] modify [column name] VARCHAR(3); Delete unique from table. mysql> alter table [table name] drop index [colmn name]; Load a CSV file into a table. mysql> LOAD DATA INFILE '/tmp/filename.csv' replace INTO TABLE [table name] FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n' (field1,field2,field3); Dump all databases for backup. Backup file is sql commands to recreate all db's. # [mysql dir]/bin/mysqldump -u root -ppassword --opt >/tmp/alldatabases.sql Dump one database for backup. # [mysql dir]/bin/mysqldump -u username -ppassword --databases databasename >/tmp/databasename.sql Dump a table from a database. # [mysql dir]/bin/mysqldump -c -u username -ppassword databasename tablename > /tmp/databasename.tablename.sql Restore database (or database table) from backup. # [mysql dir]/bin/mysql -u username -ppassword databasename < /tmp/databasename.sql Create Table Example 1. mysql> CREATE TABLE [table name] (firstname VARCHAR(20), middleinitial VARCHAR(3), lastname VARCHAR(35),suffix VARCHAR(3),officeid VARCHAR(10),userid VARCHAR(15),username VARCHAR(8),email VARCHAR(35),phone VARCHAR(25), groups VARCHAR(15),datestamp DATE,timestamp time,pgpemail VARCHAR(255)); Create Table Example 2. mysql> create table [table name] (personid int(50) not null auto_increment primary key,firstname varchar(35),middlename varchar(50),lastnamevarchar(50) default 'bato');
Ref. http://www.pantz.org/software/mysql/mysqlcommands.html ไม่มีอะไรพอดีช่วงนี้กำลังทำอะไรวุ่นๆอยู่กับ freebsd ทำการคอนฟิกโน้นนี่ไปเรื่อย และมีเรื่องที่จะคอนฟิก ntp server (ทำให้เวลามันตรงกับเค้าอะนะ แบบว่าถ้ามีการตรวจสอบจะได้ไม่โดน) แบบว่ากันลืม มาเริ่มกันเลย
1. ทำการปรับค่าใน /etc/rc.conf กันก่อน - # ee /etc/rc.conf - ใส่บรรทัดนี้ต่อท้ายลงไป ntpd_enable="YES" - จากนั้นก็ทำการ save ไฟล์ด้วย นะ
2. ทำการแก้ไขโฮสที่ใช้อ้างอิงเวลานะ โดยเข้าไปแก้ที่ไฟล์ etc/ntp.conf - # ee /etc/ntp.conf - ใส่ # หน้า3 บรรทัดที่บอกว่า server 0.freebsd.pool.ntp.org iburst maxpoll 9 server 2.freebsd.pool.ntp.org iburst maxpoll 9 server 3.freebsd.pool.ntp.org iburst maxpoll 9
- ทำการเพิ่มคำสั่งนี้ลงไปในบรรทัดก่อนหน้าที่เราใส่ # ไว้ นะ server clock.nectec.or.th prefer server clock2.nectec.or.th
3. จากนั้นลองทำการ rebooะ ซักครั้ง หรือจะทำการ start เลย ด้วยคำสั่งนี้นะ # /etc/rc.dntpd start
แค่นี้แหละเอาไว้กันลืม
เริ่มงัยดีแบบว่าวันนี้มาทำงานแล้วพบว่ามีผู้ใช้งานโทรมาแจ้งว่าเข้า hotmail ไม่ได้ (แต่เว็บอื่นเข้าได้นะ) อ้าวทำไม hotmail เข้าไม่ได้อะเนี่ย เป็นอะไรหว่า จากนั้นลองทำการเช็คดูปรากฎว่าเข้าไม่ได้จริงๆ ซึ่งการใช้ internet ที่นี่มันต้องวิ่งผ่าน proxy ที่ทำไว้ด้วย ในใจเราสงสัยต้องเป็นที่เจ้าตัว proxy ของเราแน่เลยไป block อะไรไว้หรือเปล่าหว่า ก็เข้าตามไปดู config ต่างๆใน squid.conf อย่างละเอียดลองปรับโน้นนี่ ก็ยังไม่ได้แหะ สมองก็เลยเริ่มแล่นไปอีกเอางัยดีซึ่ง internet ที่ใช้อยู่มันมีอยู่ 2 เส้นอะ แบบว่าแบ่งการใช้งานอินเตอร์เน็ตกับเมล์ เลยลองย้ายให้ไปวิ่งผ่านเส้นที่ 2 (เมล์) และลองทำการทดสอบดู ปรากฎว่าสามารถใช้งาน hotmail ได้ เหอๆ แปลกๆอยู่ในใจว่ามันเป็นที่ ISP หรือเปล่าวะเนี่ย :p ต่อมาอีกช่วงบ่ายไฟตกทำให้เครื่องเจ้า proxy เนี่ย ดับไปด้วย (ไม่มี ups ส่งไปเคลมอยู่ 55) พอลองทำการเปิดเครื่องขึ้นมาปรากฎว่าเครื่องลูกข่ายไม่สามารถเข้า internet ได้เนื่องจากไม่มีหน้าในการ authen ขึ้นมาให้ใส่ user และ password (โทรศัพท์ดังมาเป็นระลอกชุดใหญ่ แบบว่ารู้แล้วไม่ได้ใช้แปบเดี๋ยวจะตายหรืองัยวะ internet) ลองทำการเช็คอยู่ตั้งนานเป็นไรหว่าทุกอย่างก็ปกติดี จากนั้นลองเข้าไปดูที่ cache.log ว่ามีอะไรที่พอสังเกตได้บ้าง และแล้วก็เจอเลย ตามรูป 
ปัญหาก็น่าจะคงเกิดจากเจ้าตัว squid มันเช็ค dns ไม่ได้ นะแหละไม่รอช้าลองทำการเปลี่ยน rule ใน firewall ให้มันกลับไปวิ่งที่เส้น 1 อีกทีซิ 555+ เสร็จฉาน ทุกอย่างก็เข้าสู่ภาวะดังเดิมที่ต้องนั่งหน้าคอมกันต่อไป เหอๆๆๆๆๆๆ สรุปแล้วปัญหามันเกิดจากที่เราไปปรับโน้นนี่ แต่ของยังนี้มันต้องลอง เพราะถือว่าเนี่ยแหละประสบการณ์ชีวิตนะคร้าบๆๆๆๆ 
Live Hacking CD is a new Linux distribution packed with tools and utilities for ethical hacking, penetration testing and countermeasure verification. Based on Ubuntu this ‘Live CD” runs directly from the CD and doesn’t require installation on your hard-drive. Once booted you can use the included tools to test, check, ethically hack and perform penetration tests on your own network to make sure that it is secure from outside intruders. The CD comes in two forms. A full Linux desktop including a graphical user interface (GNOME) and applications like Firefox along with tools and utilities for DNS enumeration, reconnaissance, foot-printing, password cracking and network sniffing. For greater accessibility there is a Live Hacking menu to help you quick find and launch the tools. The second variation is the Live Hacking Mini CD, which is command line only. However this doesn't detract from the power of the tools and utilities included as most of the penetration testing and ethical hacking tools are command line tools. The included /lh directory has symbolic links to the different tools included.
Here is a list of the hacking tools you can find on the Live Hacking CD: Reconnaissance (and DNS) - Dig - DNS lookup utility
- DNSMap - DNS mapping is a mechanism which allows hosts on a private LAN to use DNS Services even if the address of an actual DNS Server is unknown.
- DNSTracer - Trace DNS queries to the source
- DNSWalk - Checks DNS zone information using nameserver lookups
- Netmask - Helps determine network masks
- Relay Scanner - This program is used to test SMTP servers for Relaying problems
- TCPTraceroute - Traceroute implementation using TCP packets
- Firewalk - Firewalk is a network auditing tool that attempts to determine what transport protocols a given gateway will pass.
Foot-printing - Amap - Performs fast and reliable application protocol detection, independent of the TCP/UDP port they are being bound to.
- Curl - Get a file from an HTTP, HTTPS or FTP server
- Fping - Sends ICMP ECHO_REQUEST packets to network hosts
- Hping3 - Active Network Smashing Tool
- HTTprint - A web server fingerprinting tool
- Ike-Scan - IPsec VPN scanning, fingerprinting and testing tool
- MetoScan - HTTP method scanner
- Namp - The Network Mapper
- Netcat - TCP/IP swiss army knife
- P0f - Passive OS fingerprinting and masquerade detection utility
- Zenmap - The Network Mapper Front End
Password Cracking - Chntpw - NT SAM password recovery utility
- Rainbowcrack – Crack LM, MD5 and SHA1 hashes
- THC PPTP Bruter - A brute forcing program against PPTP VPN endpoints (TCP port 1723)
- VNCrack – Crack VNC passwords
- John the ripper - A fast password cracker
Network Sniffing - DHCP Dump – DHCP packet dumper
- Dsniff – Password sniffer
- SSLDump – Dump SSL traffic on a network
- Ntop – Displays top network users
- Wireshark – Interactively dump and analyze network traffic
Spoofing (or Masquerading) - File2cable - Sends a file as a raw ethernet frame
- Netsed – Network packet streaming editor
- Sing – Send ICMP Nasty Garbage packets to network hosts
- TCPreplay – Replay network traffic stored in pcap files
Wireless Networking Utilities - Aircrack-ng - Aircrack-ng is an 802.11 WEP and WPA-PSK keys cracking program that can recover keys once enough data packets have been captured.
- Kismet – Wireless sniffing and monitoring
- THC Leap Cracker - The THC LEAP Cracker Tool suite contains tools to break the NTChallengeResponse encryption technique e.g. used by Cisco Wireless LEAP Authentication.
- WEPCrack - WEPCrack is an open source tool for breaking 802.11 WEP secret keys.
- WIDZ - Wireless Intrusion Detection System
- Cowpatty - Brute-force dictionary attack against WPA-PSK
Miscellaneous - GDB – The GNU Debugger.
- Hexdump – ASCII, decimal, hexadecimal and octal dump tool.
- Hexedit – View and edit file in hexadecimal or in ASCII
- Wipe – Securely erase files
- Madedit -Text/Hex Editor
Download http://www.livehacking.com/cd-dvd/download.htm

Lens is an open-source ethical hacking tool specialized to penetration testing of ASP.NET web applications. Lens is written in WPF 4 and its internal modular architecture allows us to easily add new tests to the system. - Base features
- Resize-friendly window structure
- Window position is preserved across sessions
- Built-in zoom
- Detailed log window
- Links to online information about the attacks and fixes
You can use our Lens tool to test your site against the following attacks
Session state Eavesdropping Session fixation (available in v.1.0.0.1) Forms authentication Eavesdropping ViewState Eavesdropping (available in v.1.0.0.1) Information disclosure (available in v.1.0.0.1) Event handler bypass Event handling Postback to disabled controls Postback to invisible controls One-click attack Download http://ethicalhackingaspnet.codeplex.com/releases/view/45324 
Do you need to keep up with the latest hacks, attacks, and exploits effecting Unified Communications technology? Then you need Seven Deadliest Unified Communication Attacks. This book pinpoints the most dangerous hacks and exploits specific to Unified Communications, laying out the anatomy of these attacks including how to make your system more secure. You will discover the best ways to defend against these vicious hacks with step-by-step instruction and learn techniques to make your computer and network impenetrable. Attacks featured in this book include:
- UC Ecosystem Attacks
- Insecure Endpoints
- Eavesdropping and Modification
- Control Channel Attacks: Fuzzing, DoS, SPIT and Toll Fraud
- SIP Trunking and PSTN Interconnection
- Identity, Spoofing and Vishing
- Attacks Against Distributed Systems
- Knowledge is power, find out about the most dominant attacks currently waging war on computers and networks globally
- Discover the best ways to defend against these vicious attacks; step-by-step instruction shows you how
- Institute countermeasures, don't be caught defenseless again, learn techniques to make your computer and network impenetrable
Product Details - Paperback: 200 pages
- Publisher: Syngress (April 28, 2010)
- Language: English
- ISBN-10: 1597495476
- ISBN-13: 978-1597495479
- Product Dimensions: 9.3 x 7.4 x 0.7 inches
- Shipping Weight: 1 pounds
Download http://hotfile.com/dl/42604749/8bf2767/Seven_Deadliest_Unified_Communications_Attacks.pdf.rar.html 
Do you need to keep up with the latest hacks, attacks, and exploits effecting networks? Then you need Seven Deadliest Network Attacks. This book pinpoints the most dangerous hacks and exploits specific to networks, laying out the anatomy of these attacks including how to make your system more secure. You will discover the best ways to defend against these vicious hacks with step-by-step instruction and learn techniques to make your computer and network impenetrable.
Attacks detailed in this book include:
- Denial of Service
- War Dialing
- Penetration "Testing"
- Protocol Tunneling
- Spanning Tree Attacks
- Man-in-the-Middle
- Password Replay
- Knowledge is power, find out about the most dominant attacks currently waging war on computers and networks globally
- Discover the best ways to defend against these vicious attacks; step-by-step instruction shows you how
- Institute countermeasures, don't be caught defenseless again, learn techniques to make your computer and network impenetrable
Product Details - Paperback: 176 pages
- Publisher: Syngress (April 29, 2010)
- Language: English
- ISBN-10: 1597495492
- ISBN-13: 978-1597495493
- Product Dimensions: 9.1 x 7.4 x 0.6 inches
- Shipping Weight: 14.4 ounces
Download http://hotfile.com/dl/42605305/c8877d8/Seven_Deadliest_Network_Attacks.rar.html 
Do you need to keep up with the latest hacks, attacks, and exploits effecting web applications? Then you need Seven Deadliest Web Application Attacks. This book pinpoints the most dangerous hacks and exploits specific to web applications, laying out the anatomy of these attacks including how to make your system more secure. You will discover the best ways to defend against these vicious hacks with step-by-step instruction and learn techniques to make your computer and network impenetrable. Attacks detailed in this book include:
- Cross-Site Scripting (XSS)
- Cross-Site Request Forgery (CSRF)
- SQL Injection
- Server Misconfiguration and Predictable Pages
- Breaking Authentication Schemes
- Logic Attacks
- Malware and Browser Attacks
- Knowledge is power, find out about the most dominant attacks currently waging war on computers and networks globally
- Discover the best ways to defend against these vicious attacks; step-by-step instruction shows you how
- Institute countermeasures, don't be caught defenseless again, learn techniques to make your computer and network impenetrable
Product Details - Paperback: 192 pages
- Publisher: Syngress (March 31, 2010)
- Language: English
- ISBN-10: 1597495433
- ISBN-13: 978-1597495431
- Product Dimensions: 9.1 x 7.4 x 0.6 inches
- Shipping Weight: 14.4 ounces
Download http://hotfile.com/dl/42606010/75472ad/Seven_Deadliest_Web_Application_Attacks.pdf.rar.html
| |