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