Vincent Wong

废柴同盟 2.0

  • Home
  • Gallery
  • About Me
  • Contact
  • WPG2

Howto: Hide Apache server banner

Catagory: linux

  1. go into your httpd.conf (example for redhax/centos: /etc/httpd/conf/httpd.conf)
  2. setting two apache directives: ServerTokens and ServerSignature . Basically to provide only a minimal amount of information we will set this in the main config to:


ServerTokens ProductOnly
ServerSignature Off

after this, restart your apache (/etc/init.d/httpd restart)

No Comments

BackTrack 3 Beta

Catagory: Internet Security, Techs

BackTrack 3 Beta is now available for download, there are 2 version released:

- CD image
- USB Version

I will test on the USB version backtrack3 with Nessus soon when I get back my momery thumb drive. Any update please feedback,thanks.

No Comments

howto: Config with dual router modem

Catagory: Techs


For some reason you got more then 2 modem router and you like to make all you LAN be able to access Internet and access to each other over LAN. This is somehow silly but this is what happened to me.

scanario 1: 1 modem router (with no switch) + 1 AP+router+4 port switch ( with no Modem)

scnario 2: both modem router with switch and you would like to use 1 as modem+router+switch and another 1 only switch

Here is the quick setup:

  1. Pick the modem unit - make sure all the internet setting is correct ( username/password, DNS server - by ISP )
  2. Turn on DHCP server over the router modem, I assume most of the modem router do have this feature.
  3. Login to the other devices other then the modem unit ( AP / switch / modem ) , make sure all these units’ DHCP server are turn off.
  4. Check your modem is connection to internet , make sure connection over your connected pc / laptop are able to connect LAN and internet.
  5. ( optional ) If you have have server need to set port forwarding / DMZ , login to the modem unit to make the setting..
No Comments

howto: Linux change IP address

Catagory: Techs


bt ~ # ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:0C:29:03:11:0B
inet addr:192.168.1.24 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe03:110b/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:89485 errors:0 dropped:0 overruns:0 frame:0
TX packets:117393 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:27761491 (26.4 MiB) TX bytes:15161867 (14.4 MiB)
Interrupt:9 Base address:0×1080

You can change ip address using ifconfig command itself. To set IP address 192.168.1.25, enter command:

# ifconfig eth0 192.168.1.25 netmask 255.255.255.0 up
# ifconfig eth0

PS://make sure no 1 are using 192.168.1.25 at your LAN.

To make permanent changes to IP address you need to edit configuration file according to your Linux distribution.

No Comments

Apache Redirect Directive

Catagory: Techs


The Apache Redirect directive allows you to tell clients and browsers about documents which used to exist in one place but have since moved. This allows you to tell the clients and browsers where to look for the relocated document.

<virtualhost 192.168.1.100>
servername www.vincentwong.net# redirect errors page to some where else..
ErrorDocument 404 http://error.vincentwong.net

# list of redirects for registered pages
# please note the + characher shows where the
# line wraps in this example. the command should
# all be one one line

Redirect /index.html http://test.vincentwong.net/index.html
Redirect /login.html http://test.vincentwong.net/login.html
# or we can use this as redirect:
Redirect permanent /index.html http://test.vincentwong.net/index.html/
Redirect permanent /login.html http://test.vincentwong.net/login.html/
</virtualhost>

Alternatively, you can redirect by using “refresh directive”
<META HTTP-EQUIV="Refresh" Content="0; URL=http://www.vincentwong.net/dir1/">

No Comments

死神也怕咬紧牙关的人

Catagory: BullShit

两个探险者迷失在茫茫的大戈壁滩上,他们因长时间缺水,嘴唇裂开了一道道的血口,如果继续下去,两个人只能活活渴死!一个年长一些的探险者从同伴手中拿过空水壶,郑重地说:“我去找水,你在这里等着我吧!”接着,他又从行囊中拿出一只手枪递给同伴说:“这里有6颗子弹,每隔一个时辰你就放一枪,这样当我找到水后就不会迷失方向,就可以循着枪声找到你。千万要记住!”看着同伴点了点头,他才信心十足地蹒跚离去……

时间在悄悄地流逝,枪膛里仅仅剩下最后一颗子弹了,找水的同伴还没有回来。“他一定被风沙湮没了或者找到水后撇下我一个人走了。”年纪小一些的探险者数着分数着秒,焦灼地等待着。饥渴和恐惧伴随着绝望如潮水般地充盈了他的脑海,他仿佛嗅到了死亡的味道,感到死神正面目狰狞地向他紧逼过来……他扣动扳机,将最后一粒子弹射进了自己的脑袋。就在他的尸体轰然倒下的时候,同伴带着满满的两大壶水赶到了他的身边……年纪小的探险者是不幸的,因为他放弃了坚持,同时也就放弃了自己宝贵的生命。

很多时候,在我们人生的道路上,面对困难和挫折,我们能够咬着牙坚持着熬过最漫长最艰难的时刻;可当成功将要与我们伸手相握的时候,却因为我们最终的放弃,便与之擦肩而过了。

困难的时刻,绝望的时刻,千万别轻言放弃,坚持再坚持。咬紧了牙关的人,死神也会避而远之,因为死神最害怕听到咬紧牙关的咯咯声。

人生箴言:珍惜生命,绝不是苟且偷安!饱食终日而无所事事,无异于慢性自杀!珍惜生命,就要惜时如金!待到硕果累累之时,才是真正的快乐。

No Comments
Total Pages:10First Post<Previous PostNext Post>Last Post
January 2009
M T W T F S S
« Dec    
 1234
567891011
12131415161718
19202122232425
262728293031  

Recent Comments

  • Manda in 不要跟著一大群人遞出名…
  • Manda in 有自卑感这样的东西吗?
  • Vincent in Check Your Hotmail, Yahoo Mail with…
  • Douglas in 有自卑感这样的东西吗?
  • admin in Howto: Linux compress / decompress …
  • lhseong in Howto: Linux compress / decompress …
  • admin in 一道受用终身的测试题 (par…
  • kww in 一道受用终身的测试题 (par…
  • stingfish in 一道受用终身的测试题 (par…
  • -@_@- in 一道受用终身的测试题 (par…

Archives

  • December 2008
  • October 2008
  • July 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007

Recent Entries

  • 如何建立自己的”人情帐户”
  • Howto: Install libxml2 in Ubuntu
  • Howto: Disable mod_security in .htaccess file
  • .htaccess tips and tricks (Part2)
  • .htaccess tips and tricks
  • NTP - update your linux time
  • 性格是命、 职业是运(part-2)
  • 性格是命、 职业是运 (part-1)
  • 等人求助不如向人討教
  • 不要跟著一大群人遞出名片

Tags

一道受用终身的测试题 人際關係 你是胡萝卜,是鸡蛋,还是咖啡豆 公司 冒风险 外人 失败了再爬起来 打招呼 知己知彼,百战不殆 聪明 致禮 .htaccess apache backtrack2 Carrot coffee egg ego gz.tar hide IP Platinum high scalability Hotmail Howto: Hide your IP address when browsing Howto: Linux compress / decompress files with Tar Howto: Monitor linux cpu usage install know your enermy in order to win links linux lose and win mod_rewrite redirection RewriteEngine risk taker self-contempt seo server-status switchproxy tool tips tor tricks vmware website scale windows zip

Categories

  • BullShit
  • Internet Security
  • linux
  • Music
  • Photo Blog
  • Techs

Pages

  • About Me
  • Contact
  • WPG2

Blogroll

  • “好时光 l GoodTime” - Douglas Ho’s Blog & Gallery
  • BlogSecurity - Web blog Security
  • Myviclub.com - Perodua Myvi Owner’s Club Malaysia
  • Vincent’s Gallery - Gallery Page

Meta

  • Register
  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
©2007 Vincent Wong
Talian designed by VA4Business, Virtual Assistance for Business who's blog can be found at Steve Arun's Virtual Marketing Blog | Brought by Wordpress Themes