Git Product home page Git Product logo

database_password_resetter's Introduction

Database Password Reset Script

Due to the Gawker password issue, we thought we'd share the script we're using to reset passwords for those users that are found in the Gawker list.

Brought to you by: Appoxy

IMPORTANT NOTICE: You will need the list of usernames and emails that were compromised in the Gawker hack.

Due to privacy/security concerns, we will not publish the username/email list to the public. We know this is kind of a pain, but we don't want to be the ones spreading spam love around.

You can get this list from us by filling out this form.

Support

If you need help with this script or resetting your database passwords, please contact us at [email protected].

Installation

You must have Ruby 1.9+ installed and install the following ruby gems:

gem install sequel nestful

To run script, type at command line:

ruby run_reset.rb -config config.yml

Config

Modify config.yml with the appropriate settings.

Database

database section is self explanatory.

Table

table section is also somewhat self explanatory.

One or both of the following must be present.

  • email_column: name of the column that contains the email addresses.
  • username_column: name of the column that contains usernames.

Options

  • do_reset: true if you want the script to generate a random password and set it. Default is false.
  • hash_password: if do_reset is true and this is true, the password will be hashed before being stored.
  • case_sensitive_match: if true, matching will be case sensitive. Default is false.

callbacks / webhooks

  • on_match_url will POST to this URL with the matching email address. This can be used to send out an email to the user with information on the reset. If do_reset is set above, the new password will also be send to this URL.

Advanced

To implement more advanced features, you'll need to write some code.

First thing is to write a class that extends PasswordReset.

Custom Password Hashing

Override hash_password method.

def hash_password(row)

row contains a hash of the database row.

database_password_resetter's People

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.