Code Monkey home page Code Monkey logo

moby's Introduction

moby

Description

Sometimes when they go fishing, they get a whale and it sinks their boat.

Installation

Prerequisites

  1. Some version of Ruby.
  2. *nix, so that it has access to /usr/share/dict/words.

1. via Homebrew

$ brew tap thoran/tap
$ brew install thoran/tap/moby

2. via git

$ git clone [email protected]:thoran/moby.git

Usage

From the command line

1. Specify form name and field names

$ moby --url https://phishing.site --form_name form-name --username_field_name login --password_field_name password

2. Specify form name and field names with short switches

This is the same as above, but using alternate switches:

$ moby --url https://phishing.site --f form-name --user_field login --pass_field password

3. Specify form number and field numbers

This selects the second form on the page (using zero-based indexing) and the first and second fields:

$ moby --url https://phishing.site --form_number 1 --username_field_number 0 --password_field_number 1

4. Specify form number and field numbers with short switches

This selects the second form on the page (using zero-based indexing) and the first and second fields:

$ moby --url https://phishing.site --form_number 1 --user_field_number 0 --pass_field_number 1

5. Specify nothing but the URL

$ moby --url https://phishing.site

This is equivalent to:

$ moby --url https://phishing.site --form_number 0 --username_field_number 0 --password_field_number 1

6. With other options

$ moby --url https://phishing.site --debug --user_agent 'Mozilla/5.0' --username_hostname mydomain.com --username_is_email_address  --verbose

Note that username_hostname is useful only if username_is_email_address is true.

From within Ruby

1. Specify form name and field names

  moby = Moby.new(
    url: 'https://phishing.site',
    form_name: 'form-name',
    username_field_name: 'login',
    password_field_name: 'password'
  )
  moby.counter_phish

2. Specify form number and field numbers

This selects the second form on the page (using zero-based indexing) and uses the first and second fields therein:

  moby = Moby.new(
    url: 'https://phishing.site',
    form_number: 1,
    username_field_number: 0
    password_field_number: 1,
  )
  moby.counter_phish

3. Specify nothing but the URL

  moby = Moby.new(
    url: 'https://phishing.site',
  )
  moby.counter_phish

This is equivalent to:

  moby = Moby.new(
    url: 'https://phishing.site',
    form_number: 0,
    username_field_number: 0
    password_field_number: 1,
  )
  moby.counter_phish

4. With other options

  moby = Moby.new(
    url: 'https://phishing.site',
    debug: true,
    user_agent: 'Mozilla/5.0',
    username_hostname: 'mydomain.com', # Only useful if username_is_email_address is true.
    username_is_email_address: true,
    verbose: true
  )
  moby.counter_phish

Note that there's no equivalent short names for constructor arguments.

Contributing

  1. Fork it: https://github.com/thoran/moby/fork
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Create a new pull request

moby's People

Contributors

thoran 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.