Giter Club home page Giter Club logo

cl0nemast3r's Introduction

Cl0neMast3r

About:

Cl0neMast3r is a Python script that was coded to make your life easier.
Now you can easily choose your favorite tools from GitHub and install them on your system with one click.
Even better you can ensure that you have latest version of your favorite tools.
All this and more you can do with Clone master.

Clone Master was mainly made for penetration testers and bug hunters ๐Ÿ˜‰

Screenshots:

macOS Check all Screenshots

Options:

Cl0neMast3r provides you with a lot of options:

Option Description
A Add a tool from GitHub using URL
F Find a tool on GitHub
R Reinstall your tools
U Update your tools
S Display information about your favorite tools
D Delete the list of tools
M Import your favorite tools
X Export your tools to HTML

Requirements:

  • Python 2.7.*

  • Requests You can find it Here
    How To Install: pip install requests

  • BeautifulSoup4 You can find it Here
    How To Install: pip install beautifulsoup4

Installation:

git clone https://github.com/Abdulraheem30042/Cl0neMast3r.git
cd Cl0neMast3r/
pip install -r requirements.txt

Environment:

Doesn't support Windows right now :(
Cl0neMast3r has been tested on:

  • macOS High Sierra
  • Kali Linux
  • Linux Mint

Version:

Current version: 1.0
You can check versions history from Here

Coder:

Coded with love and bugs by Abdulraheem Khaled โค๏ธ

cl0nemast3r's People

Contributors

abdulrah33m avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cl0nemast3r's Issues

Lastest build

`python /opt/clonemaster/Cl0neMast3r.py

Traceback (most recent call last):
File "/opt/clonemaster/Cl0neMast3r.py", line 1, in
oovin# coding: utf-8
NameError: name 'oovin' is not defined`

Exception in thread Thread-1

Here:

================================================================================
           _____ _  ___             __  __           _   ____
          / ____| |/ _ \           |  \/  |         | | |___ \
         | |    | | | | |_ __   ___| \  / | __ _ ___| |_  __) |_ __
         | |    | | | | | '_ \ / _ \ |\/| |/ _` / __| __||__ <| '__|
         | |____| | |_| | | | |  __/ |  | | (_| \__ \ |_ ___) | |
          \_____|_|\___/|_| |_|\___|_|  |_|\__,_|___/\__|____/|_|

                                        ./Abdulraheem Khaled @Abdulrah33mK
================================================================================
[A] Add a tool using URL
[F] Find a tool on GitHub
[R] Reinstall your tools
[U] Update your tools
[S] Display your tools
[D] Delete tools list
[X] Export tools to HTML
[M] Import your tools
[E] Exit
How can I help you: Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "Cl0neMast3r.py", line 256, in update
    Tool.list = [Tool(tool.strip(), True) for tool in resource]
  File "Cl0neMast3r.py", line 34, in __init__
    self.lastUpdate = self.lastUpdate()
  File "Cl0neMast3r.py", line 42, in lastUpdate
    return self.strpTime(str(s.find("relative-time")['datetime'].replace("T", " ")[:-1]))
TypeError: 'NoneType' object has no attribute '__getitem__'

Item is empty. Exception should be handled.

Updating Tools

Tried updating (option 2)

How can I help you: U [Updating your tool] Please wait to update tools list [1] Update all tools [2] Update old tools **Choose 1 or 2: 2** Traceback (most recent call last): File "/opt/clonemaster/Cl0neMast3r.py", line 321, in <module> Tool.update() File "/opt/clonemaster/Cl0neMast3r.py", line 202, in update listToUpdate = [tool for tool in cls.list if not tool.isUpToDate] AttributeError: Tool instance has no attribute 'isUpToDate'

problem in line 60 in python3

File "/data/data/com.termux/files/home/Cl0neMast3r/Cl0neMast3r.py", line 60
print 'Installing: ' + self.name + ': ',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

help anyone?

Bug: Script crashed on emojis & Chinese characters

Description of gitleak contains a key emoji and another one contains Chinese characters.
https://github.com/zricethezav/gitleaks
https://github.com/5alt/GitLeak

How can I help you: f
[Finding your tool]
[1] Search using tool name
[2] Search using username
Which one you want: 1
Enter a name to search for: gitleak
I found 5 tools, How many tools do you want me to display: 1
Tool Number: 1
Tool: gitleak
Author: 5alt
URL: https://github.com/5alt/gitleak
Availability: Available
Traceback (most recent call last):
File "Cl0neMast3r.py", line 334, in
Tool.find(raw_input('Enter a name to search for' + red + ': ' + end), choice)
File "Cl0neMast3r.py", line 163, in find
Tool(foundTools[-1]).printInfo()
File "Cl0neMast3r.py", line 92, in printInfo
print 'Description: ' + red + self.desc + end
UnicodeEncodeError: 'ascii' codec can't encode characters in position 28-31: ordinal not in range(128)

error after importing

Imported current directory - all went OK
Display your tools - Error Below

Please wait to update tools list Exception in thread Thread-2: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 754, in run self.__target(*self.__args, **self.__kwargs) File "/opt/clonemaster/Cl0neMast3r.py", line 256, in update Tool.list = [Tool(tool.strip(), True) for tool in resource] File "/opt/clonemaster/Cl0neMast3r.py", line 33, in __init__ self.lastInstall = self.lastInstall() if self.isInstalled else "Couldn't retrieve the date" File "/opt/clonemaster/Cl0neMast3r.py", line 46, in lastInstall return self.strpTime(open(self.name + "/install", "r").read()) File "/opt/clonemaster/Cl0neMast3r.py", line 106, in strpTime return datetime.strptime(date, "%Y-%m-%d %H:%M:%S") File "/usr/lib/python2.7/_strptime.py", line 332, in _strptime (data_string, format)) ValueError: time data '#!/usr/bin/env python\n#HEAD#########################################################\n#\n# Katana Framework | install \n# Last Modified: 14/03/2017\n#\n#########################################################HEAD#\n\nfrom core import Information, colors, Update\nimport os, time, subprocess\nfrom sys import stdout\n\ndef Command_exe(msg,cmd):\n\ti = "\\033[1mSTATUS"+colors.W+":[Processing]"\n\tstdout.write(" " + msg + " %s" % i)\n\tstdout.flush()\n\tif subprocess.call(cmd+\' >/dev/null 2>&1\', shell=True)==0:\n\t\ti = "[\\033[1m"+colors.G+"OK"+colors.W+"]"\n\telse:\n\t\ti = "["+colors.R+"\\033[1mERROR"+colors.W+"]["+colors.O+"\\033[1mWARNING"+colors.W+"]"\n\t\t\n\tstdout.write("\\r " + msg +" STATUS:%s" % i)\n\nprint ""\nprint " "+colors.B+",:"+colors.W+" "+colors.B+":,"+colors.W+" \t\t\t\t "# ,: :, \nprint " "+colors.B+",/./"+colors.W+" _8_ "+colors.B+"\\.\\ \t\t\t\t "# /./ _8_ \\.\\ \nprint " "+colors.B+",\\ \\\\"+colors.W+"/"+colors.P+"("+colors.R+"O"+colors.P+")"+colors.W+"\\\\"+colors.B+"/ / \t\t\t\t "# \\ \\/( O )\\/ / \nprint " "+colors.B+",\\ \\:::/ / \t\t\t\t "# \\ \\:::::/ / \nprint " /"+colors.O+"__"+colors.G+"---"+colors.O+"__"+colors.B+"\\ \t\t\t\t "# /__---__\\ \nprint " ("+colors.O+"/__\\ /__\\\\"+colors.B+")"+colors.W+" \t\t\t\t "# (/__\\ /__\\) \nprint " "+colors.B+"/"+colors.W+"\\ .V. /"+colors.B+"\\\\"+colors.W+" \t\t\t\t "# /\\ .V. /\\ \nprint " "+colors.B+"/"+colors.W+" \\,---,/ "+colors.B+"\\\\"+colors.W+" \t\t\t\t "# / \\,---,/ \\ \nprint " "+colors.B+"\\\\"+colors.W+"___TTTTT___"+colors.B+"/"+colors.W+" CODE: KATANA "# \\___TTTTT___/ \nprint " ::::\\ "+colors.R+"|"+colors.W+"_____"+colors.R+"|"+colors.W+" /:::: DATE: "+Information.date+""# ::::\\ "+colors.R+"|"+colors.W+"_____"+colors.R+"|"+colors.W+" /:::: \nprint " (+ _"+colors.R+"|"+colors.W+" __"+colors.R+"|"+colors.W+"__ "+colors.R+"|"+colors.W+"_ +) CORE: "+Information.version+", BUILD: "+Information.build # (+ _"+colors.R+"|"+colors.W+" __"+colors.R+"|"+colors.W+"__ "+colors.R+"|"+colors.W+"_ +) \nprint " "+Information.Type+" "+colors.R+"|"+colors.W+" I_"+colors.R+"|"+colors.W+"KATANA."+colors.R+"|"+colors.W+"_I "+colors.R+"|"+colors.W+" "# "+colors.R+"|"+colors.W+" I_"+colors.R+"|"+colors.W+".ANATAK"+colors.R+"|"+colors.W+"_I "+colors.R+"|"+colors.W+" \nprint " "+colors.R+"|"+colors.W+" I_"+colors.R+"|"+colors.W+"_"+colors.R+"|"+colors.W+"_"+colors.R+"|"+colors.W+"_"+colors.R+"|"+colors.W+"_"+colors.R+"|"+colors.W+"_"+colors.R+"|"+colors.W+" "+colors.R+"|"+colors.W+" \t\t\t\t "# "+colors.R+"|"+colors.W+" I_"+colors.R+"|"+colors.W+"_"+colors.R+"|"+colors.W+"_"+colors.R+"|"+colors.W+"_"+colors.R+"|"+colors.W+"_"+colors.R+"|"+colors.W+"_"+colors.R+"|"+colors.W+" "+colors.R+"|"+colors.W+" \nprint " __________?_____________________________________ \t\t\t\t "# __________?_________________________________ \nprint " {_"+colors.C+"B|"+colors.W+" "+colors.C+"Y|"+colors.W+" "+colors.R+"R|"+colors.W+" "+colors.W+"T|"+colors.W+" |"+colors.GR+"#################################"+colors.W+"/ \t\t\t\t "# {_"+colors.R+"|"+colors.W+" "+colors.R+"|"+colors.W+" "+colors.R+"|"+colors.W+" "+colors.R+"|"+colors.W+" I#################################/ \nprint " ^ ^ ^ ^ ,ww "+colors.O+"FRAMEWORK"+colors.W+" ww, \t\t\t\t "# ^ ^ ^ ^ EHT KROWEMARF, dliuB \nprint " I_"+colors.R+"|"+colors.W+"_"+colors.R+"|"+colors.W+"_"+colors.R+"|"+colors.W+"_"+colors.R+"|"+colors.W+"_"+colors.R+"|"+colors.W+"_I \t\t\t\t "# I_"+colors.R+"|"+colors.W+"_"+colors.R+"|"+colors.W+"_"+colors.R+"|"+colors.W+"_"+colors.R+"|"+colors.W+"_"+colors.R+"|"+colors.W+"_I \nprint " \\_"+colors.R+"|"+colors.W+"_"+colors.R+"|"+colors.W+"_"+colors.R+"|"+colors.W+"_"+colors.R+"|"+colors.W+"_"+colors.R+"|"+colors.W+"_/ \t\t\t\t "# \\_"+colors.R+"|"+colors.W+"_"+colors.R+"|"+colors.W+"_"+colors.R+"|"+colors.W+"_"+colors.R+"|"+colors.W+"_"+colors.R+"|"+colors.W+"_/ \nprint ""\nprint ""\n\nif os.getuid() != 0:\n\tprint " ["+colors.R+"-"+colors.W+"] ERROR:"+colors.B+" Katana Install"+colors.B+" must be run as "+colors.R+"root"+colors.W+"."\n\tprint " ["+colors.R+"-"+colors.W+"] login as root ("+colors.R+"sudo"+colors.W+") or try "+colors.W+"sudo python install"+colors.W+"\\n"\n\texit(1)\ntime.sleep(1)\n\nShortcuts ="ln -f -r -s /usr/share/KatanaFramework/core/shorts/ktf.console /usr/bin/ktf.console ; ln -f -r -s /usr/share/KatanaFramework/core/shorts/ktf.linker /usr/bin/ktf.linker ; ln -f -r -s /usr/share/KatanaFramework/core/shorts/ktf.update /usr/bin/ktf.update ; ln -f -r -s /usr/share/KatanaFramework/core/shorts/ktf.ktf /usr/bin/ktf.ktf ; ln -f -r -s /usr/share/KatanaFramework/core/shorts/ktf.tool /usr/bin/ktf.tool ; ln -f -r -s /usr/share/KatanaFramework/core/shorts/ktf.gui /usr/bin/ktf.gui ; ln -f -r -s /usr/share/KatanaFramework/core/shorts/ktf.run /usr/bin/ktf.run "\nFiles ="cp -r * /usr/share/KatanaFramework/doc/man/ /usr/local/share/man/man1/ ; cd /usr/share/KatanaFramework/files/ ; tar xvf /usr/share/KatanaFramework/files/exiftool.tar >/dev/null 2>&1 ; tar xvf /usr/share/KatanaFramework/files/getdatareport.tar >/dev/null 2>&1; rm -R /usr/share/KatanaFramework/files/*.tar ; rm /usr/share/KatanaFramework/install ; rm /usr/share/KatanaFramework/dependencies ; rm /usr/share/KatanaFramework/README.md "\nPreinstall="rm -f /usr/bin/ktf.console; rm -f /usr/bin/ktf.linker; rm -f /usr/bin/ktf.update; rm -f /usr/bin/ktf.ktf; rm -f /usr/bin/ktf.tool; rm -f /usr/bin/ktf.run; rm -f /usr/bin/ktf.gui; "\n\nprint " INSTALLING"\nprint Command_exe("["+time.strftime(\'%H:%M:%S\')+"] Pre-installing. ",Preinstall)\nprint Command_exe("["+time.strftime(\'%H:%M:%S\')+"] Checking dependencies. ",\'sudo bash dependencies\')\nprint " ["+time.strftime(\'%H:%M:%S\')+"] Checking Updates."\nUpdate.update("installer",True)\nprint ""\nprint Command_exe("["+time.strftime(\'%H:%M:%S\')+"] Creating Folder. ",\'mkdir -p /usr/share/KatanaFramework\')\nprint Command_exe("["+time.strftime(\'%H:%M:%S\')+"] Copying files. ",\'cp -r * /usr/share/KatanaFramework\')\nprint Command_exe("["+time.strftime(\'%H:%M:%S\')+"] Creating Shortcuts. ",Shortcuts)\nprint Command_exe("["+time.strftime(\'%H:%M:%S\')+"] Extracting Files. ",Files)\nprint Command_exe("["+time.strftime(\'%H:%M:%S\')+"] Giving privileges. ",\'chmod -R -c 750 /usr/share/KatanaFramework/\')\n\nprint "\\n If all is [OK] Katana was installed, use ktf.console or ktf.gui (DEMO)"\nprint " go to https://github.com/PowerScript/KatanaFramework/wiki for more info\\n"\n' does not match format '%Y-%m-%d %H:%M:%S'

Add option update from default online list

Hi Abdul,

First of all, what a great tool you've built!

I have a small request.
Can you add an option to configure a URL from which it can import tools.
I'd like to save my list of tools in Github and configure the raw URL inside Cl0neMast3r.
This way I only have to update my online list :)

Bug

I have ran the tool many times with no issues. However, I went to run it today and keep getting an error. Have no idea why it is not working or what broke it. I am on Kali Linux 2018.1 and have double checked to make sure all dependency's are installed. The error occurs right after opening the tool and letting it sit for 5 seconds. And none of the options work, they all just freeze.

[A] Add a tool using URL
[F] Find a tool on GitHub
[R] Reinstall your tools
[U] Update your tools
[S] Display your tools
[D] Delete tools list
[X] Export tools to HTML
[M] Import your tools
[E] Exit
How can I help you: Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "Cl0neMast3r.py", line 256, in update
Tool.list = [Tool(tool.strip(), True) for tool in resource]
File "Cl0neMast3r.py", line 34, in init
self.lastUpdate = self.lastUpdate()
File "Cl0neMast3r.py", line 42, in lastUpdate
return self.strpTime(str(s.find("relative-time")['datetime'].replace("T", " ")[:-1]))
TypeError: 'NoneType' object has no attribute 'getitem'

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.