Saturday, July 11, 2015

Raspberry Pi Honeypot inspired by HKOSC 2015

事源係 hkepc 見到呢個 post,就知道有 Hong Kong Open Source Conference 2015 (以前未聽過)。
星期六 (201/06/27) 去左,不過時間唔夠,去得一陣。個朝訓晏左,裝唔切 racket 冇去到 functional programming o個個 workshop‥有D可惜。Detail 可以去 FB : https://www.facebook.com/hkoscon

不過,係臨走前見到地下有 roadshow,見到 dick sir 既 3D print 氣槍、弓,好好玩。之後見到我今日要寫既 Honeypot。個 booth 應該係 PISA 掛 ?! 佢地就 show 左我今日要砌既 raspberry pi honeypot.

係之前既佔中公投,開始聽到 cloudflare, honeypot 呢 D terms。簡單嚟講 honeypot 就係一個誘捕器。網絡誘捕器可以扮成一台 device / server / desktop,可以 record 低 hacker 既 behaviour 同 hack history / log。

我之後係淘寶買左 raspberry pi 2 model b 同 case 風扇咁。大家可以係香港買 http://hkcn.rs-online.com/web/generalDisplay.html?id=raspberrypi , 本港免運費,幾抵。


買左個金屬 case,幾正




用膠紙黐風扇…


組裝完既樣


唔知點解風扇唔著,就裸住 troubleshoot 下,開頭以為插錯 pin,後來搞左一大輪,原來係膠紙黏到扇葉‥ ><


好喇!裝完硬,可以裝軟嘢。我隻 mon 冇 HDMI,插電視搞 XD

原本想裝 http://sourceforge.net/projects/pi-pot/files/pi-pot%20vanilla/ 呢隻,夠方便,write image 就得,但唔知點解唔 work

最後去 download NOOBS https://www.raspberrypi.org/downloads/
可以 refer 返 official site 既 help : https://www.raspberrypi.org/help/noobs-setup/
下面有D screen captures,好簡單,冇咩特別









Setup screen



插 LAN 線,DHCP 已取 IP address,可上網 (手痕 Update 下先)


enable ssh login


setup 完,係 console 試下 startx 睇下咩樣

好…OS 裝完,交返部電視俾丫媽。甩埋 keyboard,剩係插 LAN 線。



唔記得 check 咩 IP 添,唔緊要,去返我隻 edge router 望下咩  IP 先。跟手 SSH 裝埋 honeypot。

我揀左 kippo 裝,同埋 kippo graph
基本上係跟住呢條 link 裝 : http://www.behindthefirewalls.com/2014/02/ssh-honeynet-kippo-kali-and-raspberry-pi.html


最後 加多條 rule redirect port 22 去 honeypot 度

嘿嘿…過多幾日睇下咩情況先 ^^ (之後先貼返 D graph)

Friday, June 26, 2015

[Fwd] 把25美元電腦 Raspberry Pi 變成任天堂遊戲機,看改裝魔人怎麼做?

5d9fc9f06de51c7159b36041fad84c9b在一些巧匠能手買到 25美元電腦 Raspberry Pi 後,除了開箱以外,有人幫它做了外殼,也有人把它變成超級任天堂主機。名為 Florian 的老兄在部落格上發表文章,告訴大家改造方法,還放了一段實際玩「瑪利歐賽車(Super Mario Kart)」的影片。
首先來看一下把 Raspberry Pi 改造成超級任天堂主機後,玩「瑪利歐賽車(Super Mario Kart)」的影片。從影片中可以看到,以 Raspberry Pi 取代了超任主機,但仍然使用正牌的超任手把。
要把 Raspberry Pi 改造成超任主機,首先要面臨選擇那一個 Linux 發行版本的問題,以確保音效可以正常輸出。接著就是要決定使用那一款超任模擬器,有一位名為 ToadKing 的高手已經把 RetroArch 模擬器成功改為 Raspberry Pi 可用的版本,所以就直接拿來用了。
另外一個問題是,怎麼讓正牌的超任手把跟 Raspberry Pi 連結?雖然可以透過轉接器(如下圖)讓超任手把以 USB 介面和 Raspberry Pi 連接,但把 Raspberry Pi 的 USB 用掉了,怎麼同時接鍵盤或滑鼠呢?而且這種「偷懶」行為豈是改裝魔人願意做的? 
▲ 圖片來源:Amazon
所以 Florian 把腦筋動到 Raspberry Pi 上面的「GPIO 通用型之輸入輸出 (General Purpose I/O))」,從下圖可以看到 GPIO 的位置。Florian 寫了一支小程式,用來把超任手把的按鍵訊號,傳達到 Raspberry Pi 裡面。
下圖的左上方接頭會插到 Raspberry Pi 的 GPIO 針腳;右上方是 PCB 板,用來解讀超任手把的按鍵訊號;下方則是兩個超任手把的接頭。
接著把 DIY 好的手把連接套件接上 Raspberry Pi。
最後接上超任手把,就可以開始玩遊戲了。
如果有其他神人可以做出外殼放進 Raspberry Pi,而且外殼上面挖洞嵌入超任手把的連接頭,加上 Raspberry Pi 原本就有的 HDMI 接頭,一台遊戲主機就出現啦!(大誤~)

同場加映:Raspberry Pi 的木質外殼

改裝達人 Ben Heck 把腦筋動到很有可塑性的 Raspberry Pi 上面,用木頭做了外殼,不止如此,這個外殼剛好可以嵌入一把鍵盤,變成一台鍵盤電腦。
在這段影片裡可以看到更多產品的細節。

[Fwd] Emulator now runs x86 apps on all Raspberry Pi models

Eltechs’s faster ExaGear Desktop software version now supports ARMv6, in addition to ARMv7, letting users run x86 apps on all models of the Raspberry Pi.

Russia-based Eltechs announced its ExaGear Desktop virtual machine last August, enabling Linux/ARMv7 SBCs and mini-PCs to run x86 software. That meant that users of the quad-core, Cortex-A7-based Raspberry Pi 2 Model B, could use it as well, although the software was not yet optimized for it.

Now Eltechs has extended ExaGear to support earlier ARMv6 versions of the Raspberry Pi. The company also optimized the program for the Pi 2. For example, Pi 2 users can now use automatically forwarding startup scripts, according to Eltechs CEO Vadim Gimpelson in an email to LinuxGizmos.

In August, Eltechs said ExaGear Desktop ran 4.5 times faster than the open source QEMU VM. With new performance improvements, the software is 5 to 10 percent faster, or about five times faster than QEMU, claims Gimpelson. In addition, the new version now enables guest applications to use the host’s PulseAudio sound server.

The key to the Pi 2 enhancements was that the software, which was previously optimized for Ubuntu, now fully supports Debian, including the Debian-based Raspbian. The host system can now run Ubuntu 12.04 or higher, Debian 7, or Raspbian. The new release had also added guest images for Ubuntu 12.04, Ubuntu 14.04, and Debian 7.

In addition to supporting the Raspberry Pi, the software runs on Linux-based platforms including Odroid, Cubieboard, CuBox, Utilite, Jetson TK1, Wandboard, and Banana Pi, among others. ExaGear Desktop can also run on an ARM-based Chromebook. As before, running Windows programs is possible by also installing the Wine emulator.


Further information

The new fully Raspberry Pi compatible version of ExaGear Desktop is available now. The software is priced at $24.95 for the Raspberry Pi 2, and $19.95 for the Pi, but both versions are currently on sale for $14.95 and $9.95, respectively. More information may be found the Eltechs website (http://eltechs.com/product/exage ... eatures-and-prices/).

Source: http://linuxgizmos.com/emulator- ... aspberry-pi-models/



Buy Raspberry Pi
http://hkcn.rs-online.com/web/p/processor-microcontroller-development-kits/8326274/

https://www.youtube.com/user/wanleungwong
http://www.hkepc.com/forum/viewthread.php?tid=2180132