GithubHelp home page GithubHelp logo

crawling2sqlite's Introduction

crawling2sqlite

Crawl the web and save urls, words, emails, images, pdfs and midis using sqlite for persistence. You an also find open directories, and categorize images checking if they are nsfw. The statistics page is able to show relationship between hosts.

You should be able to run multiple concurrent instance on the same database, but keep in mind that sqlite is not good for that scenario. It is also possible to crawl and download images simultaneously. A folder mounted in ram might help improve performance.

This is a study project I used to learn about decorators, sqlite and beautiful soup, and python in general.

The expressions have been tested against more than 10 million urls, but there are still many content types and applications that are not covered by the regular expressions. The generic expression -> function approach was intended to allow fast development of new features.

Requirements:

sudo apt install python3-pip pip3 install fake_useragent pip3 install selenium pip3 install django pip3 install bs4 pip3 install opennsfw2 pip3 install tensorflow pip3 install random_user_agent pip3 install django

Viewing images

I recommend using feh to see the results in the image directory

feh -FZzD 1

Some interesting queries

I´ve found and reported several directory traversal vulnerabilities using these queries:

  • select * from urls where url like '%file=%/%' order by url;
  • select * from urls where url like '%file=%' order by url;
  • select * from urls where url like '%arquivo=%/%' order by url;
  • select * from urls where url like '%arquivo=%' order by url;
  • select * from urls where url like '%?%=%' order by url;
  • select * from urls where url like '%==%' order by url;
  • select * from urls where url like '%.sql%' order by url;
  • select * from urls where url like '%bkp%' order by url;
  • select * from urls where url like '%backup%' order by url;
  • select * from urls where url like '%.tar.gz%' order by url;
  • select * from urls where url like '%.tar.xz%' order by url;
  • select * from urls where url like '%.tar.bz%' order by url;
  • select * from urls where url like '%.zip%' order by url;
  • select * from urls where url like '%upload%' order by url;
  • select * from urls where url like '%register%' order by url;

crawling2sqlite's People

Contributors

rggassner avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.