class: center, middle, inverse ## Facciamo finta di avere una vita sociale Mettiamo dei bot a fare amici al posto nostro --- layout: false # Summary (there's not much, actually) 1. The tools we have 2. The fun I imagine 3. How much is too much? --- # The tools we have * Simulating web behaviour with browsers bots * It's easier than API! * we don't need oauth, authorization, etc * it's (arguably) more similar to a 'normal' user behaviour --- ## Splinter A wrapper on selenium (and something else actually) which is an implementation of the webdriver interface. Which means that... ``` from splinter import Browser browser = Browser('chrome') browser.visit('http://google.com') browser.fill('q', 'the answer to life the universe and everything') # find the submit buttom by the class atribute and click it browser.find_by_css('.lsb').first.click() # Note: find_by_css find elements in html using css selectors # like we use in a css file print browser.find_by_css('#topstuff .std h2').first.value browser.quit() ``` --- ## Splinter: smilar stuff There is plenty of similar stuff in your favourite language --- # The fun I see * noone is stupid enough to appear as such on twitter * not even a bot * so go making crazy bots everywhere * is not a new idea: even at hackit0x0F there was something similar * but it was based on Facebook API (less stealth) + JS extension (more burden to write) --- # How much is too much? Why don't we record everything we see with forensic data management tools? Maltego! ![maltego shot](bot/maltego-small.jpg) --- # How much is too much? Why don't we record everything we see with forensic data management tools? Maltego! È un accrocco in cui tu ci metti i dati che hai raccolto, così li puoi visualizzare in un modo intuititivo. --- # The fun I see * scriviamo bot in giro * vediamo che cosa scoprono * tipo spettegolare sul quartiere, ma coi quartieri degli altri