Coder Social home page Coder Social logo

scanfoolery's Introduction

scanFoolery

This tool will dump password authentication attempts to the SSH daemon.

Every SSHD child process will get attached to and at the completetion of the process, the attempted passwords and connection logs will be dumped to the script.

This is handy if you are on a pentest and the client scans computers in their networks and attempts to authenticate with Domain Admin credentials. Looking at you Landsweeper.

Prerequisites

sudo apt install strace

Usage


┌──(root㉿kali)-[/mnt/hgfs/work/scripting/scanFoolery/scanFoolery]
└─# ./checkmate.sh 
Found Pid: 1076220. Attaching...
May 18 12:43:55 kali sshd[1076220]: Invalid user frank from 172.25.25.131 port 56943
May 18 12:44:03 kali sshd[1076220]: Failed password for invalid user frank from 172.25.25.131 port 56943 ssh2
May 18 12:44:06 kali sshd[1076220]: Failed password for invalid user frank from 172.25.25.131 port 56943 ssh2
May 18 12:44:11 kali sshd[1076220]: Failed password for invalid user frank from 172.25.25.131 port 56943 ssh2
May 18 12:44:12 kali sshd[1076220]: Connection reset by invalid user frank 172.25.25.131 port 56943 [preauth]
Password Attempt 1: "password1!"
Password Attempt 2: ""
Password Attempt 3: "spring2021!"
----------------------------------------------------
Found Pid: 1082034. Attaching...
May 18 12:44:26 kali sshd[1082034]: Failed password for spicy from 172.25.25.131 port 56945 ssh2
May 18 12:44:27 kali sshd[1082034]: Connection reset by authenticating user spicy 172.25.25.131 port 56945 [preauth]
Password Attempt 1: "thegame"
----------------------------------------------------

#To install as a service

┌──(root㉿kali)-[/mnt/hgfs/work/scripting/scanFoolery/scanFoolery]
└─# ./persist.sh 
Created symlink /etc/systemd/system/multi-user.target.wants/ssh-logging.service → /etc/systemd/system/ssh-logging.service.

#Log output

┌──(root㉿kali)-[~]
└─# tail -f ssh_pass.log 
May 18 12:44:12 kali sshd[1076220]: Connection reset by invalid user frank 172.25.25.131 port 56943 [preauth]
Password Attempt 1: "password1!"
Password Attempt 2: ""
Password Attempt 3: "spring2021!"
----------------------------------------------------
May 18 12:44:26 kali sshd[1082034]: Failed password for spicy from 172.25.25.131 port 56945 ssh2
May 18 12:44:27 kali sshd[1082034]: Connection reset by authenticating user spicy 172.25.25.131 port 56945 [preauth]
Password Attempt 1: "thegame"
----------------------------------------------------

scanfoolery's People

Contributors

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