Git Product home page Git Product logo

lockpicker's Introduction

Lockpicker

A simple program written in go that checks if users on your linux server have simple passwords.

Screenshot

In order to run the checks, the program uses 'expect' (more precisely, Google's 'goexpect' implementation available at https://github.com/google/goexpect). The "su" command is used in order to attempt to login.

At the moment of writing this, the only passwords that are checked are the following ones:

  • password = username
  • password = username + 1 digit
  • password = username + 2 digits

Using the tool

Download a binary

Compile your own binaries

Prerequisites: you must have go 1.20 installed on your system

  • Clone this repository
  • Run "go build"

You can also build both the x86 and x64 versions by running:

GOARCH=amd64 go build -o lockpicker_x64
GOARCH=386 go build -o lockpicker_x86

Roadmap

This is still a work in progress for me.
Here is a list of things that I plan to (eventually) add to this script:

  • Improve concurrency. Right now, this is a version that just worked for PoC purposes
  • Add flags to allow the user to change the program's behaviour
  • Allow the user to select a custom password list
  • Allow the user to change how many requests are executed in parallel
  • Add more options for generating simple passwords (uppercase/lowercase mutations, more digits, common words, etc)
  • ???

lockpicker's People

Contributors

cristi075 avatar dependabot[bot] avatar

Stargazers

Alin Oancea avatar

Watchers

 avatar

Forkers

alinoancea

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.