Sunday, December 25, 2011

Add static ARP in Windows 7, Vista, Server 2008

Windows XP
arp -s 192.168.1.1 00-11-18-21-45-91

Windows 7 , Vista, Server 2008
netsh interface ipv4 add neighbors "Local Area Connection" 192.168.1.1 00-11-18-21-45-91


ARP Spoofing Detection
http://www.chrismc.

กรณีที่มี ip address ชนกันกับ gateway จะดูคล้ายกับโดน ARP Spoofing
เช่นกรณี ap อยู่ดีๆก็โดน reset กลับเป็นค่า default setting
ให้ใช้คำสั่ง arp -a ดูว่า mac ของ gw เปลี่ยนไปมาหรือเปล่า
แล้ว add static arp เพื่อเข้าไป set ap นัั้นให้ได้ โดยเปลี่ยน ip ใหม่ โดยใช้ ip ที่ ap นั้นอยากจะเป็น ถ้าใช้เป็น ip อื่นอาจจะเข้าไปแล้วหลุดออกมา และตั้งค่าอื่นๆใหม่
เสร็จแล้วค่อยลบ static arp นั้นออกโดยใช้คำสั่ง arp -d <ip>
ถ้าจะให้ดีควรทำ บัญชี mac ของทุกเครื่องและทุกอุปกรณ์ให้หมด เวลามีปัญหาจะได้เช็กง่าย
สามารถเอา mac ไปเช็กได้ด้วยว่ามาจากอุปกรณ์ยี่ห้ออะไรจะได้ตัดให้แคบลงได้

สำหรับ Windows 7 บางกรณีอาจจะลบ static arp ไม่ออก คือลบออกแต่เมื่อ restart computer
static arp ที่เคยตั้งไว้ก็กลับมาใหม่ ให้ใช้คำสั่งด้านล่าง reset ค่าของ interface ก่อน
netsh interface ipv4 reset
netsh interface ip delete arpcache

Sunday, December 18, 2011

Google Authenticator

Codes from Google Authenticator not working after phone reset

If you recently reset or wiped your phone, the Google Authenticator app might not be able to generate valid codes. To get your Google Authenticator app working again, you will need to delete your account from the app, turn off 2-step verification, turn it back on, and add your account to the app again.
Open the Google Authenticator app on your phone.
Delete your account from the app. Don't worry, your Google Account will not be deleted – just the connection from the app to your account.
Press and hold the account you want to delete, then tap Delete on the dialog box that pops up.
Go to your 2-step verification settings page.
Click Remove near your smartphone name (Android, BlackBerry, or iPhone).
Turn 2-step verification back on by clicking Set up 2-step verification and following the directions. You will need to configure Google Authenticator again on your phone, but your other details will be saved.
Once you've completed the 2-step verification setup, your app should once again be generating valid codes

Monday, May 30, 2011

Windows 2000

ถ้ามีความจำเป็นที่จะต้องใช้ Windows 2000 ควรทำ 2 ขั้นตอนนี้ด้วยคือ

- Enable big harddisk support (ตามปกติจะเห็นประมาณ 120G) ถ้าไม่ทำจะทำให้มีอาการอยู่ๆ partition หายไปเฉยๆ หรือมองเห็น harddisk ไม่เต็มความจุ

1. Start Registry Editor (Regedt32.exe).
2. Locate and then click the following key in the registry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Atapi\Parameters
3. On the Edit menu, click Add Value, and then add the following registry value:
Value name: EnableBigLba
Data type: REG_DWORD
Value data: 0x1
4. Quit Registry Editor.
http://support.microsoft.com/kb/305098/EN-US/


- Install IE6 SP1 เพื่อให้สามารถเข้า Windows Update ได้ (ปกติจะมาพร้อมกับ IE5)
1. download ie6 sp1 setup ได้จาก link http://www.microsoft.com/downloads/info.aspx?na=90&p=&SrcDisplayLang=en&SrcCategoryId=&SrcFamilyId=1e1550cb-5e5d-48f5-b02b-20b602228de6&genscs=&u=http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/EN-US/ie6setup.exe
2. สั่ง download setup file มาเก็บไว้เพื่อ install ได้โดย run คำสั่ง

ie6setup.exe /c:"ie6wzd.exe /d /s:""#E"
ซึ่งจะ save ไว้ที่ drive e:

http://www.petri.co.il/download_the_full_ie_package.htm

Tuesday, March 01, 2011

Case Dell Optiplex

มี 3 แบบ

1. Mini Tower
- มีขนาดใหญ่สุด เสียบ card pci ได้เลย
- รหัสต่อท้าย Model คือ MT เช่น 380 MT

2. Desktop
- ใหญ่พอกับ Mini Tower แต่บางกว่า หา card มาเสียบได้ยาก
- รหัสต่อท้าย Model คือ DT เช่น 380 DT

3. Small Form Factor
- เล็กสุด ราคาแพงกว่าแบบอื่น

Tuesday, February 01, 2011

Free Time Sync Software

http://www.analogx.com/contents/download/Network/ats/Freeware.htm

http://www.1stbyte.com/2009/04/07/configure-windows-server-2003-and-2008-w32tm-commands-on-domain-controller/

http://social.technet.microsoft.com/Forums/en-US/winservergen/thread/96278628-03a1-4b3d-90d9-2208a65a1210/

http://social.technet.microsoft.com/Forums/en-US/winserverPN/thread/192fe65f-478b-45fd-9ba4-5798802c13d8

http://social.technet.microsoft.com/Forums/en/winservergen/thread/ed37e31c-c012-42aa-a9cf-9762e5da3a43

http://social.technet.microsoft.com/Forums/en/windowsserver2008r2general/thread/62a12268-0ac5-4816-a990-9a97bb4acd45

http://social.technet.microsoft.com/Forums/en-US/winservergen/thread/628a7e09-cd75-4e6e-92dc-a8e187c21f7c

http://social.technet.microsoft.com/Forums/en-US/itprovistasetup/thread/d9c65d89-4691-4212-8991-616f01183d70

http://social.technet.microsoft.com/Forums/en/winservergen/thread/96278628-03a1-4b3d-90d9-2208a65a1210


w32tm /config "/manualpeerlist:0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org pool.ntp.org",0×8 /syncfromflags:MANUAL /reliable:yes /update
w32tm /config /manualpeerlist:0.pool.ntp.org,0x8 /syncfromflags:MANUAL /reliable:yes /update
w32tm /resync /rediscover

Sunday, January 30, 2011

Restart RV042

http://www.r00t.cz/Misc/RV042

reboot
?cmd=RebootReboots the router

enable telnet
?ConsoleSimulation=1/0Enables/disables telnet server on port 23

Friday, January 28, 2011

แปลงไฟล์ Karaoke

แปลง MPG Karaoke ให้เป็นไฟล์เสียงแยกซ้ายขวา ใช้โปรแกรม MPEG-VCR
http://www.womble.com/download/vcr.html

ตัดต่อไฟล์เสียงใช้ Goldwave

Saturday, January 08, 2011

Setting Google Apps Domain Key in DNS

Enable DKIM in Google Apps control panel

Create or Modify DNS

1. Creare new TXT Record name google._domainkey
2. enter value that you generated from google apps below the line TXT record value example: v=DKIM1; k=rsa; t=y; p=MIGfMA....






Verify DNS

1. open nslookup
2. type set type=txt
3. type google._domainkey.yourdomain.com you will see output like this
(but google._domainkey.yourdomain.com is not subdomain)


Server: google-public-dns-a.google.com
Address: 8.8.8.8

Non-authoritative answer:
google._domainkey.yourdomain.com text =

"v=DKIM1; k=rsa; t=y; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCzx1zk4E0J
LunrLqQ34OcUWIHpVRz1iJMeWygSaXNpkKCocWKLeBJyipkKmSlrsilAh4qmj0r+jQ7rGTM1Kc+hzVnlZzfFfUqidY0JyW2TpXY6zatSS2QAhjLv2Wn2p1WL6ABX0f4hKqwzg9CuvK80zJhDuuXH3MkRApNs4fN/gQIDAQAB"


Note
- In google apps if click show detail in email you will see information like this:

mailed-by yourdomain.com <- if you use SFP record in DNS
signed-by yourdomain.com <- if you enable DKIM