我正在閱讀Syngress 的 Buffer Overflow Attacks一書

其中在 Reverse Shellcode小節, 因為得把Ip換算成 0x...(hex) 好讓shellcode逆向連接

所以其中給出 這段perl 代碼 讓我們能輕鬆運算

這裡假設 IP 為 1.2.3.4

可是不知道為什麼 總是會提示 下面那段 無法找到 ' 的訊息


C:\perl -e 'printf "0x" . "%02x"x4 ."\n", 4, 3, 2, 1'

Can't terminator " ' " anywhere before EOF at -e line 1
--~--~---------~--~----~------------~-------~--~----~
 要向邮件组发送邮件,请发到 [email protected]
 要退订此邮件,请发邮件至 [email protected]
-~----------~----~----~----~------~----~------~--~---

回复