Coder Social home page Coder Social logo

selenium_attacker's Introduction

Selenium Attacker

Overview

Password list attack to mezzanine admin page for internal test by using selenium

Requirement

  • python3
  • pip3
  • git
  • Web Browser
    • this Poc-code use Chrome, if you would like to use other browser, you should change code in main.py
  • Browser Driver
    • this Poc-code use chromedriver for MacOS, and so you should replace for your envirment when you don't use Mac

Usage

  • basic usage
(selenium_attacker) kazu0716 MacBook-Pro-4 $ python attacker.py
2018/02/22 02:33:02 - User: admin, Pass: admin, Result: Succeeded
2018/02/22 02:33:03 - ------------------------------------------------
2018/02/22 02:33:03 - Senario-3 : ログイン -> 特定4URLにアクセス
2018/02/22 02:33:03 - Access lists: ユーザー->内容->ページ

2018/02/22 02:33:03 - Logout: True
2018/02/22 02:33:03 - ----------------
2018/02/22 02:33:03 - Run senario
2018/02/22 02:33:03 - Clicked: ユーザー
2018/02/22 02:33:04 - Clicked: 内容
2018/02/22 02:33:07 - Clicked: ページ
2018/02/22 02:33:08 - Logout
  • modify user_id and password
(selenium_attacker) kazu0716 MacBook-Pro-4 $ head -n 3 account_list.csv
admin,[email protected],admin
richard59,[email protected],@2~OMZ025
melindajones,[email protected],k9N?OPj76*fO
  • attcker config file
[general]
url=http://127.0.0.1:8000/ja/admin/login/
account=username
#account=email
driver=phantomjs
#driver=chrome
ip_type=random

[interval]
max=1
min=1

[senario]
pattern=0

# pattern 設定値説明
# 1 ログイン -> 特定1URLにアクセス -> ログアウトする
# 2 ログイン -> 特定1URLにアクセス -> ログアウトしない
# 3 ログイン -> 特定4URLにアクセス -> ログアウトする
# 4 ログイン -> 特定4URLにアクセス -> ログアウトしない
# 5 ログイン -> ランダムな1URLにアクセス -> ログアウトする
# 6 ログイン -> ランダムな1URLにアクセス -> ログアウトしない
# 7 ログイン -> ランダムな4URLにアクセス -> ログアウトする
# 8 ログイン -> ランダムな4URLにアクセス -> ログアウトしない
# 9 ログイン -> ランダムな1~5URLにアクセス -> ログアウトする
# 0 ログイン -> ランダムな1~5URLにアクセス -> ログアウトしない
# 上記以外 ログインのみ

Install

git clone https://github.com/kazu0716/selenium_attacker.git
cd selenium_attacker/
pip3 install -r requirement.txt
python3 attacker.py

selenium_attacker's People

Contributors

kazu0716 avatar

Watchers

James Cloos avatar  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.