SlideShare ist ein Scribd-Unternehmen logo
1 von 37
Downloaden Sie, um offline zu lesen
Politwoops .tw
我說錯了嘛我說錯了嘛
先來說說原始的先來說說原始的 PolitwoopsPolitwoops
前端畫面長這樣:前端畫面長這樣:
實際組成是:實際組成是:
前端
後端
預計做到這
現在在這 !!
了解架構才有辦法下手了解架構才有辦法下手
所以來說說架構吧
tweet-collectortweet-collector 的成份的成份
資料來源
資料儲存
畫面截圖
運作方式運作方式
beanstalkd
MySQ
L
Tweepy
PhantomjsPhantomjs
看起來似乎只要把 Tweepy 換成
Facebook 用的,就可以解決了呢 !
圖片來源 : http://livedoor.blogimg.jp/nipi090/imgs/0/0/00d426ff.jpg
FB API 超難用
的
FB API 超難用
的
FB API 超難用
的
FB API 超難用
的
人家有的我沒有:人家有的我沒有: APIAPI 差異差異
• Twitter
• Twitter 沒有 edit 功能
• 有 deleted tweet 資訊, tweet 會提供 key(‘deleted’) 做為辨
識
• 提供 data streaming ( tweepy 提供 streamListener )
• Facebook
• Facebook 有 edit 功能,但無法從 feed 辨識
• 不提供 deleted feed 資訊
• 沒提供 data streaming
• Feed type 不明確 (API 只有分 photo, link, video, status 四
種 )
• ( 像是 like commit 也會出現在 feeds 裡面 , 但沒有直接的 link)
圖片來源 : http://img.sc115.com/uploads/allimg/101205/20101205124130188.jpg
圖片來源 : http://pic.pimg.tw/smilestupid/114114410851.jpg
總之完成了總之完成了 !!!!
• For Client:
 實做 feed streaming 功能 & Listener.
 實做 token_extend.
• For feeds-Worker:
 實做 edited_feed update.
 增加 normal user 特徵
• New feeds-Checker:
 實做 normal users -> politicians.
 實做 check feed accessible, deleted, re-check feed edited.
• For screenshot-Worker: (ly 說這個先跳過 XD)
所以有了新的架構圖所以有了新的架構圖
運作方式運作方式
beanstalkd
MySQ
L
Streaming
Source Code?Source Code?
在 http://j.mp/politwoops
( 文件在 g0v’s hackpad)
DEMO TIME
Politwoops.tw
Politwoops.tw
Politwoops.tw
Politwoops.tw
Politwoops.tw
Politwoops.tw
Politwoops.tw
Politwoops.tw
Politwoops.tw
Politwoops.tw
Politwoops.tw
Politwoops.tw
Politwoops.tw
Politwoops.tw
Politwoops.tw
Politwoops.tw
Politwoops.tw
Politwoops.tw
Politwoops.tw

Weitere ähnliche Inhalte

Andere mochten auch

Csw2016 d antoine_automatic_exploitgeneration
Csw2016 d antoine_automatic_exploitgenerationCsw2016 d antoine_automatic_exploitgeneration
Csw2016 d antoine_automatic_exploitgenerationCanSecWest
 
Csw2016 song li-smart_wars
Csw2016 song li-smart_warsCsw2016 song li-smart_wars
Csw2016 song li-smart_warsCanSecWest
 
SQL injection duplicate error principle
SQL injection duplicate error principleSQL injection duplicate error principle
SQL injection duplicate error principlehackstuff
 
Csw2016 chen grassi-he-apple_graphics_is_compromised
Csw2016 chen grassi-he-apple_graphics_is_compromisedCsw2016 chen grassi-he-apple_graphics_is_compromised
Csw2016 chen grassi-he-apple_graphics_is_compromisedCanSecWest
 
CSW2017 Harri hursti csw17 final
CSW2017 Harri hursti csw17 finalCSW2017 Harri hursti csw17 final
CSW2017 Harri hursti csw17 finalCanSecWest
 
Web2.0 attack and defence
Web2.0 attack and defenceWeb2.0 attack and defence
Web2.0 attack and defencehackstuff
 
CSW2017 Kyle ehmke lots of squats- ap-ts never miss leg day
CSW2017 Kyle ehmke lots of squats- ap-ts never miss leg dayCSW2017 Kyle ehmke lots of squats- ap-ts never miss leg day
CSW2017 Kyle ehmke lots of squats- ap-ts never miss leg dayCanSecWest
 
Algo/Crypto about CTF
Algo/Crypto about CTFAlgo/Crypto about CTF
Algo/Crypto about CTFhackstuff
 
Dvwa low level
Dvwa low levelDvwa low level
Dvwa low levelhackstuff
 
ROP 輕鬆談
ROP 輕鬆談ROP 輕鬆談
ROP 輕鬆談hackstuff
 
Android Security Development
Android Security DevelopmentAndroid Security Development
Android Security Developmenthackstuff
 
新手無痛入門Apk逆向
新手無痛入門Apk逆向新手無痛入門Apk逆向
新手無痛入門Apk逆向hackstuff
 
Python 網頁爬蟲由淺入淺
Python 網頁爬蟲由淺入淺Python 網頁爬蟲由淺入淺
Python 網頁爬蟲由淺入淺hackstuff
 
Android IPC Mechanism
Android IPC MechanismAndroid IPC Mechanism
Android IPC MechanismLihan Chen
 
CSW2017 Qiang li zhibinhu_meiwang_dig into qemu security
CSW2017 Qiang li zhibinhu_meiwang_dig into qemu securityCSW2017 Qiang li zhibinhu_meiwang_dig into qemu security
CSW2017 Qiang li zhibinhu_meiwang_dig into qemu securityCanSecWest
 
CSW2017 Yuhao song+Huimingliu cyber_wmd_vulnerable_IoT
CSW2017 Yuhao song+Huimingliu cyber_wmd_vulnerable_IoTCSW2017 Yuhao song+Huimingliu cyber_wmd_vulnerable_IoT
CSW2017 Yuhao song+Huimingliu cyber_wmd_vulnerable_IoTCanSecWest
 
Acm入门教程
Acm入门教程Acm入门教程
Acm入门教程acm er
 
Csw2016 wheeler barksdale-gruskovnjak-execute_mypacket
Csw2016 wheeler barksdale-gruskovnjak-execute_mypacketCsw2016 wheeler barksdale-gruskovnjak-execute_mypacket
Csw2016 wheeler barksdale-gruskovnjak-execute_mypacketCanSecWest
 

Andere mochten auch (20)

Csw2016 d antoine_automatic_exploitgeneration
Csw2016 d antoine_automatic_exploitgenerationCsw2016 d antoine_automatic_exploitgeneration
Csw2016 d antoine_automatic_exploitgeneration
 
Csw2016 song li-smart_wars
Csw2016 song li-smart_warsCsw2016 song li-smart_wars
Csw2016 song li-smart_wars
 
SQL injection duplicate error principle
SQL injection duplicate error principleSQL injection duplicate error principle
SQL injection duplicate error principle
 
Sys Security
Sys SecuritySys Security
Sys Security
 
Csw2016 chen grassi-he-apple_graphics_is_compromised
Csw2016 chen grassi-he-apple_graphics_is_compromisedCsw2016 chen grassi-he-apple_graphics_is_compromised
Csw2016 chen grassi-he-apple_graphics_is_compromised
 
CSW2017 Harri hursti csw17 final
CSW2017 Harri hursti csw17 finalCSW2017 Harri hursti csw17 final
CSW2017 Harri hursti csw17 final
 
Rootkit 101
Rootkit 101Rootkit 101
Rootkit 101
 
Web2.0 attack and defence
Web2.0 attack and defenceWeb2.0 attack and defence
Web2.0 attack and defence
 
CSW2017 Kyle ehmke lots of squats- ap-ts never miss leg day
CSW2017 Kyle ehmke lots of squats- ap-ts never miss leg dayCSW2017 Kyle ehmke lots of squats- ap-ts never miss leg day
CSW2017 Kyle ehmke lots of squats- ap-ts never miss leg day
 
Algo/Crypto about CTF
Algo/Crypto about CTFAlgo/Crypto about CTF
Algo/Crypto about CTF
 
Dvwa low level
Dvwa low levelDvwa low level
Dvwa low level
 
ROP 輕鬆談
ROP 輕鬆談ROP 輕鬆談
ROP 輕鬆談
 
Android Security Development
Android Security DevelopmentAndroid Security Development
Android Security Development
 
新手無痛入門Apk逆向
新手無痛入門Apk逆向新手無痛入門Apk逆向
新手無痛入門Apk逆向
 
Python 網頁爬蟲由淺入淺
Python 網頁爬蟲由淺入淺Python 網頁爬蟲由淺入淺
Python 網頁爬蟲由淺入淺
 
Android IPC Mechanism
Android IPC MechanismAndroid IPC Mechanism
Android IPC Mechanism
 
CSW2017 Qiang li zhibinhu_meiwang_dig into qemu security
CSW2017 Qiang li zhibinhu_meiwang_dig into qemu securityCSW2017 Qiang li zhibinhu_meiwang_dig into qemu security
CSW2017 Qiang li zhibinhu_meiwang_dig into qemu security
 
CSW2017 Yuhao song+Huimingliu cyber_wmd_vulnerable_IoT
CSW2017 Yuhao song+Huimingliu cyber_wmd_vulnerable_IoTCSW2017 Yuhao song+Huimingliu cyber_wmd_vulnerable_IoT
CSW2017 Yuhao song+Huimingliu cyber_wmd_vulnerable_IoT
 
Acm入门教程
Acm入门教程Acm入门教程
Acm入门教程
 
Csw2016 wheeler barksdale-gruskovnjak-execute_mypacket
Csw2016 wheeler barksdale-gruskovnjak-execute_mypacketCsw2016 wheeler barksdale-gruskovnjak-execute_mypacket
Csw2016 wheeler barksdale-gruskovnjak-execute_mypacket
 

Politwoops.tw