Saturday, June 10, 2017

Recipe 2017.06.10 - Chinese-Style Fried Chicken

Just to be clear - by Chinese style, I meant Chinese takeaway.

Ingredients:

  • 10 whole chicken wings
  • 1/8 teaspoon black pepper
  • ¼ teaspoon white pepper
  • ¼ teaspoon garlic powder
  • 1 teaspoon salt
  • ½ teaspoon sugar
  • 1 tablespoon soy sauce
  • 1 tablespoon Shaoxing wine
  • 1 teaspoon sesame oil
  • 1 egg
  • 1 tablespoon cornstarch
  • 2 tablespoons flour


Put chicken wings in a zip-lock bag. Combine ingredients thoroughly in a mixing bowl. Pour mixture into the zip-lock bag. Marinate overnight in the fridge.

Wings should be at room temperature prior to frying. Make sure the wings are evenly coated. If the batter is too runny, add more cornstarch and flour.

Fry the wings at medium/high heat for 5 minutes, then let them rest on paper towels. Fry again for 3 minutes, then serve.

Wednesday, May 10, 2017

Extending WiFi Coverage

Lots of ways to do this, but I'm going for the cheapest option. With a number of modem routers at my disposal, I've decided to link two of them using an Ethernet cable. If running a cable between the two routers is not possible, you can also go via the wireless route, but expect a throughput hit.

  1. Firstly, make sure the primary modem router is working fine. No point setting everything up and not knowing where it went wrong.
  2. Make note of its IP address and the IP range that its DHCP server is managing (usually 192.168.0.10 - 192.168.0.209).
  3. Power on the secondary (modem) router and do a factory reset. This is usually done by pressing the reset button for 5-10 seconds.
  4. Connect PC to the secondary modem. Access management GUI (usually 192.168.0.1) on a web browser and change its IP address to one within the primary router's DHCP range (192.168.0.200, for example). Take note of its MAC address.
  5. Disable DHCP service (and NAT) of the secondary router, since the primary router will now handle that.
  6. Create the same WiFi SSID (with the same password). Or even create a new one to differentiate the two routers.
  7. Connect an Ethernet cable to the LAN (not WAN) ports of the routers.
  8. On the primary router, assign a static DHCP lease to the secondary router (based on its MAC address) to minimize the chances of an IP address conflict.

Voila! Two WiFi routers linked by an Ethernet cable, providing extended seamless wireless coverage.

Thursday, February 2, 2017

蔡依林 - 今天妳要嫁給我

蔡依林 - 今天妳要嫁給我

作詞:陶喆/娃娃
作曲:陶喆



陶:春暖的花開 帶走冬天的感傷
chun nian de hua kai dai zhe dong tian de gan shang
微風吹來浪漫的氣息 
wei feng chu lai lang man de qi xi
每一首情歌 忽然充滿意義
mei yi shou qing ge hu ran chong man yi yi
我就在此刻突然見到妳 
wo jiu zai ci ke tu ran jian dao ni

蔡:春暖的花香 帶走冬天的凄寒
chun nuan de hua xiang dai zou dong tian de qi han
微風吹來意外的愛情 
wei feng chui lai yi wai de ai qing
鳥兒的高歌 拉近我們距離
niao er de gao ge la jin wo men ju li
我就在此刻突然愛上你 
wo jiu zai ci ke tu ran ai shang ni

合:聽我說 手牽手 跟我一起走
ting wo shuo shou qian shou gen wo yi qi zou
創造幸福的生活 
chuang zao xing fu de sheng huo
昨天已來不及 明天就會可惜
zuo tian yi lai bu ji ming tian jiu hui ke xi
今天嫁給我好嗎 
jin tian jia gei wo hao ma

陶:JOLIN IN THE HOUSE 
蔡:DT IN THE HOUSE 
陶:JOLIN IN THE HOUSE 
蔡:DT IN THE HOUSE 
陶:Come On JOLIN IN THE HOUSE 
蔡:DT IN THE HOUSE 
合:OUR LOVE IN THE HOUSE 
陶:SWEET SWEET LOVE 

陶:夏日的熱情 打動春天的懶散
xia ri de re qing da dong chun tian de lan san
陽光照耀美滿的家庭 
yang guang zhao yao mei man de jia ting
每一首情歌 都會勾起回憶
mei yi shou qing ge dou hui gou qi hui yi
想當年我是怎麼認識妳 
xiang dang nian wo shi zen me ren shi ni

蔡:冬天的憂傷 結束秋天的孤單
dong tian de you xiang jie su qiu tian de gu dan
微風吹來苦樂的思念 
wei feng chui lai ku le de si nian
陶:I'M MISSIN' YOU 
蔡:鳥兒的高歌 唱著不要別離 
niao er de gao ge chang zhe bu yao bie li
合:此刻我多麼想要擁抱你
ci ke wo duo me xiang yao yong bao ni

合:聽我說 手牽手 跟我一起走
ting wo shuo shou qian shou gen wo yi qi zou
過著安定的生活 
guo zhe an ding de shen huo
昨天已來不及 明天就會可惜
zuo tian yi lai bu ji ming tian jiu hui ke xi
今天妳要嫁給我 聽我說 
jin tian ni yao jia gei wo ting wo shuo
手牽手 我們一起走
shou qian shou wo men yi qi zou
把妳一生交給我 
ba ni yi sheng jiao gei wo
昨天不要回頭 明天要到白首
zuo tian bu yao hui tou ming tian yao dao bai shou
今天妳要嫁給我 
jin tian ni yao jia gei wo

(RAP)HEY HEY,UH UH 叮噹 聽著禮堂的鐘聲
ding dang ting zhe li tang de zhong sheng
我們在上帝和親友面前見證 
wo men zai shang di he qin you mian qian jian zheng
這對男女現在就要結為夫妻
zhe dui nan nv xian zai jiu yao jie wei fu qi
不要忘了這一切是多麼的神聖 
bu yao ang le zhe yi qie shi duo me de shen sheng
你願意生死苦樂永遠和她在一起
ni yuan yi sheng si ku le yong yuan he ta zai yi qi
愛惜她 尊重她 安慰她 保護著她 
ai xi ta zun zhong ta an wei ta bao hu zhe ta
倆人同心建立起美滿的家庭
liang ren tong xin jian li qi mei man de jia ting
你願意這樣做嗎? 
ni yuan yi zhe yang zuo ma
合:YES,I DO 

合:聽我說 手牽手 一路到盡頭
ting wo shuo shou qian shou yi lu dao jin tou
把妳一生交給我 
ba ni yi sheng jiao gei wo
昨天已是過去 明天更多回憶
zuo tia yi shi guo qu ming tian geng duo hui yi
今天妳要嫁給我 
jin tian ni yao jia gei wo
今天妳要嫁給我
jin tian ni yao jia gei wo
今天妳要嫁給我 

jin tian ni yao jia gei wo
今天妳要嫁給我
jin tian ni yao jia gei wo
今天妳要嫁給我
jin tian ni yao jia gei wo

Monday, January 23, 2017

周杰倫 - 我落淚。情緒零碎

周杰倫 - 我落淚。情緒零碎

作詞:方文山
作曲:周杰倫
編曲:鍾興民



地上 斷了翅的蝶
Di shang, duan le chi de die
霧散之後的 滿月
Wu san zhi hou de man yue
原來愛 跟心碎
Yuan lai ai gen xin sui
都可以很 細節
Dou ke yi hen xi jie

聽夜風繞過 幾條街
Ting ye feng rao guo ji tiao jie
秋天瘦了滿地 的落葉
Qiu tian shou le man di de luo ye
於是又一整夜
Yu shi you yi zheng ye
感性的句子 都枯萎 凋謝
Gan xing de ju zi dou ku wei, diao xie

*
我不想再寫 隨手撕下這一頁 (這一頁)
Wo bu xiang zai xie, sui shou si xia zhe yi ye (zhe yi ye)
原來詩跟離別 可以沒有結尾(沒有結尾)
Yuan lai shi gen li bie ke yi mei you jie wei (mei you jie wei)
憔悴後悔等等 這些
Qiao cui hou hui deng deng zhe xie
於是我 把詩摺疊
Yu shi wo ba shi zhe die
郵寄出感覺 夾一束白玫瑰
You ji chu gan jue, jia yi shu bai mei gui
妳將愛退回
Ni jiang ai tui hui

我不落淚 忍住感覺
Wo bu luo lei, ren zhu gan jue
分手在起風 這個季節
Fen shou zai qi feng, zhe ge ji jie
哭久了會累 也只是別人的以為
Ku jiu le hui lei, ye zhi shi bie ren de yi wei
冷的咖啡 我清醒著 一再續杯
Leng de ka fei, wo qing xing zhe, yi zai xu bei

我落淚 情緒零碎
Wo luo lei, qing xu ling sui
妳的世界 一幕幕紛飛
Ni de shi jie, yi mu mu fen fei
門外的薔薇 帶刺傷人的很直接
Men wai de qiang wei, dai ci shang ren de hen zhi jie
過去被翻閱 結局滿天的 風雪
Guo qu bei fan yue, jie ju man tian de feng xue

Repeat *

林志炫 - 多一點少一點

林志炫 - 多一點少一點

作詞:樓南蔚
作曲:韓賢光

溫柔一點 浪漫一點 我都不會
wen rou yi dian lang man yi dian wo du bu hui
冷漠一點 疏遠一點 又怕你心碎
leng mo yi dian shu yuan yi dian you pa ni xin sui
愛太濃  嫌太甜  愛太鬆  淡無味
ai tai nong xian tai tian ai tai song dan wu wei
我已失去了判斷 不知如何去調配
wo yi shi qu liao pan duan bu zhi ru he qu diao pei

自由一點 隨性一點 別太累
zi you yi dian sui xing yi dian bie tai lei
退後一點 找回一些 初戀的滋味
tui hou yi dian zhao hui yi xie chu lian de zi wei
想要飛  儘管飛  想要醉  徹底醉
xiang yao fei jin guan fei xiang yao zui che di zui
愛情不必多言語 一個眼神就體會
ai qing bu bi duo yan yu yi ge yan shen jiu ti hui

*
愛你多一點 頂多是感動到落淚 愛你少一點 也不是罪
ai ni duo yi dian ding duo shi gan dong dao luo lei ai ni shao yi dian ye bu shi zui
我不想強求完美 也不會徹夜不歸 愛應該隨心所欲 行雲流水
wo bu xiang qiang qiu wan mei ye bu hui che ye bu gui ai ying gai sui xin suo yu xing yun liu shui
雖然我 做不到如影跟随 卻不會 讓你任憑風吹
sui ran wo zuo bu dao ru ying gen sui que bu hui rang ni ren ping feng chui
相信我 愛你的心 永不收回
xiang xin wo ai ni de xin yong bu shou hui

溫柔一點 浪漫一點 我都不會
wen rou yi dian lang man yi dian wo du bu hui
冷漠一點 疏遠一點 又怕你心碎
leng mo yi dian shu yuan yi dian you pa ni xin sui
愛太濃  嫌太甜  愛太鬆  淡無味
ai tai nong xian tai tian ai tai song dan wu wei
愛情不必多言語 一個眼神就體會
ai qing bu bi duo yan yu yi ge yan shen jiu ti hui

Repeat *

溫柔一點 浪漫一點 冷漠一點 疏遠一點
wen rou yi dian lang man yi dian leng mo yi dian shu yuan yi dian
自由一點 隨性一點 退後一點 找回一些
zi you yi dian sui xing yi dian tui hou yi dian zhao hui yi xie

張惠妹 - 真實

張惠妹 - 真實

作詞:徐世珍
作曲:Won Tae Yeon/Cho Kyuman
編曲:屠穎



你說的話
ni shuo de hua
在我心中生了根
zai wo xin zhong sheng le gen
愛得很深
ai de hen shen
所以心會疼
suo yi xin hui teng
記憶 在我的心中翻滾
ji yi zai wo de xin zhong fan gun
是不是每一個人
shi bu shi mei yi ge ren
都像我一樣笨
dou xiang wo yi yang ben

只怕再問
zhi pa zai wen
對彼此都太殘忍
dui bi ci dou tai can ren
我能感覺
wo neng gan jue
另外一個人
ling wai yi ge ren
我等 等笑容換成淚痕
wo deng deng xiao rong huan cheng lei hen
愛在崩潰的時候
ai zai beng kui de shi hou
比較真
bi jiao zhen
太多疑問
tai duo yi wen
知道答案又如何
zhi dao da an you ru he
原來容忍不需要天份
yuan lai yong ren bu xu yao tian fen
只要愛錯一個人
zhi yao ai cuo yi ge ren
心痛比快樂更真實
xin tong bi kuai le geng zhen shi
愛為何這樣的諷刺
ai wei he zhe yang de feng ci
我忘了這是第幾次
wo wang le zhe shi di ji ci
一見你就無法堅持
yi jian ni jiu wu fa jian chi
孤獨比擁抱更真實
gu du bi yong bao geng zhen shi
愛讓人失去了理智
ai rang ren shi qu le li zh
i會不會是我太自私
hui bu hui shi wo tai zi si
拒絕更寂寞的日子
ju jue geng ji mo de ri zi
放不開
fang bu kai
也看不見未來
ye kan bu jian wei lai
難道這種不完美
nan dao zhe zhong bu wan mei
才是愛情真實的樣子
cai shi ai qing zhen shi de yang zi
太多疑問
tai duo yi wen
知道答案又如何
zhi dao da an you ru he
原來容忍不需要天份
yuan lai yong ren bu xu yao tian fen
只要愛錯一個人
zhi yao ai cuo yi ge ren
心痛比快樂更真實
xin tong bi kuai le geng zhen shi
愛為何這樣的諷刺
ai wei he zhe yang de feng ci
我忘了這是第幾次
wo wang le zhe shi di ji ci
一見你就無法堅持
yi jian ni jiu wu fa jian chi
孤獨比擁抱更真實
gu du bi yong bao geng zhen shi
愛讓人失去了理智
ai rang ren shi qu le li zhi
會不會是我太自私
hui bu hui shi wo tai zi si
拒絕更寂寞的日子
ju jue geng ji mo de ri zi

孤獨比擁抱更真實
gu du bi yong bao geng zhen shi
愛讓人失去了理智
ai rang ren shi qu le li zhi
會不會是我太自私
hui bu hui shi wo tai zi si
拒絕更寂寞的日子
ju jue geng ji mo de ri zi

放不開
fang bu kai
也看不見未來
ye kan bu jian wei lai
難道這種不完美
nan dao zhe zhong bu wan mei
才是愛情真實的樣子
cai shi ai qing zhen shi de yang zi

Saturday, January 21, 2017

周杰倫 - 好久不見

周杰倫 - 好久不見

作詞:周杰倫
作曲:周杰倫
編曲:蔡庭貴



好久不見 你還好嗎
hao jiu bu jian ni hai hao ma 
你的小狗 長大了嗎
ni de xiao gou zhang da le ma 
我的圍巾 還圍著嗎
wo de wei jin hai wei zhe ma 
我的相片 都丟了吧
wo de xiang pian dou diu le ba 

我剪不到 後面頭髮
wo jian bu dao hou mian tou fa 
這個藉口  還不錯吧(哎呦不錯)
zhe ge ji kou hai bu cuo ba (ai you bu cuo) 
一把剪刀一堆廢話
yi ba jian dao yi dui fei hua 
還不是想求求你回來吧
hai bu shi xiang qiu qiu ni hui lai ba 

*
麥擱一個人咧生氣 乎伊煩惱 乎伊操心
mai gu ji gei lang lie xiu qi hu yi huan no hu yi co xin 
雖然不關我的代誌 誰叫他是我的兄弟 耶
sui ran bu guan wa eh dai ji shui gio ee sii wa eh hei di ye 
攏這麼久就唰唰去 想想秋天就馬過去 耶
lu jia ni gu jiu shua shua ki xiu xiu qiu ti jiu bei ge ke ye 
冬天來臨他會怕冷 你不回來甘講要我抱伊
dong tin lai lin ee eii kia leng li bei teng lai gan kong ai wa po yi 
按呢甘好 是我不好 我沒有緊緊抱住你(緊緊抱住你)
an ni gum ho shi wo bu hao wo mei you jin jin bao zhu ni (jin jin bao zhu ni)
你說淚留著 很危險
ni shuo lei liu zhe hen wei xian
如果等雨一起(等雨一起) 流下不讓同情發現
ru guo deng yu yi qi (deng yu yi qi) liu xia bu rang tong qing fa xian 

我對天空這個那個流星 大喊後會不會有奇蹟
wo dui tian kong zhe ge na ge liu xing da han hou hui bu hui you qi ji 
就算做朋友也沒關係 為你改變了自己都不認識自己
jiu suan zuo peng you ye mei guan xi wei ni gai bian le zi ji dou bu ren shi zi ji 
不是我跑去了整形 只是我拿出真心
bu shi wo pao qu le zheng xing zhi shi wo na chu zhen xin 

開一瓶這個那個香檳 去我的Mr.J餐廳
kai yi ping zhe ge na ge xiang bin qu wo de Mr. J can ting 
點蠟燭順便吃個甜品 慶祝你打死不連絡的毅力
dian la zhu shun bian chi ge tian pin qing zhu ni da si bu lian luo de yi li 
冷戰早已經不流行 趕快回來到 我身邊
leng zhan zao yi jing bu liu xing gan kuai hui lai dao wo xin bi

Repeat *

Thursday, January 19, 2017

Beini 1.2.5

Been years since I last looked into WiFi hacking. I've since upgraded my access point to WPA2, so I thought I'd try to crack it.

Tool of choice is still Beini, the latest (and last ever) version being 1.2.5. Alternative are Xiaopan OS and Backtrack, but I'm too lazy to experiment.

As discussed in a previous post, WEP networks are easiest to hack because all Feeding Bottle needs to do is to collect enough IVs, and the password is eventually revealed. Protip: Instead of using the default ARP Replay Attack, try using P0841 Replay Attack or even Fragmentation Forge Attack as the attack parameter (with Fake Auth by force enabled). This gets you lots of IVs in a short time.

WEP is one thing, and WPA/WPA2 is another. Basically, what we're after is to capture a 4-way handshake between the WiFi router and the client(s). If you can't wait for the authentication to happen, just press the Deauth button (every few minutes) to force the step. That said, sometimes the client just drop out with authenticating again (for some reason). Once the handshake is captured, we can then try to crack the password using dictionaries. For my testing purposes, I have Beini running on a 256MB USB stick. Not enough to host those 13GB dictionaries. What I have on hand are darkcode.lst and rockyou.txt (from Backtrack and Kali) and a small dictionary set called fcicq-dict-unidct-20100410.tce. So far, can't find a match for my WPA2 password. Either the dictionaries are crap, or my password is very secure.

Technically, it IS possible to crack WPA/WPA2 without using dictionaries. Instead of cracking the WPA password, you crack the WPS PIN, and get in that way. Using the open-source reaver, Inflator scans for a WPS-enabled AP, then uses brute-force attack to guess the WPS PIN. It does take a couple of hours minimum, especially if the router has AP rate-limiting feature, but Inflator/reaver will get the password eventually.

Friday, January 13, 2017

Wireshark Can't Decode Gy Diameter Packets

Need to look at some specific Diameter AVPs in a tcpdump trace. For some reason, I'm only getting the intial Gx and Gy, but not the update requests.



Packets 8 and onwards look like they're the update Gy messages I'm looking for, but Wireshark is not decoding them as Diameter. Tried to force-decode it using the "Decode as" option, but no dice. Expert info on the SEQ/ACK analysis tells me that these are suspected TCP retransmissions (of the initial Diameter messages), which they're not.

A workaround I came up with is to mark and export the Diameter request-answer pairs into their own pcap files, so Wireshark is able to decode them properly. Not the most elegant solution - quite time-consuming - but it works.

Gave it some thought, and found an even better solution. Go to Edit --> Preferences --> Protocols --> TCP, and disable Analyze TCP sequence numbers.


Voila!