{"id":28805921,"url":"https://github.com/jarryshaw/scripts","last_synced_at":"2026-05-18T10:05:31.050Z","repository":{"id":96122880,"uuid":"99495225","full_name":"JarryShaw/Scripts","owner":"JarryShaw","description":"Some useful bash scripts.","archived":false,"fork":false,"pushed_at":"2018-12-09T02:53:16.000Z","size":174,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-27T03:52:20.914Z","etag":null,"topics":["bash"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JarryShaw.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-08-06T15:21:04.000Z","updated_at":"2018-12-09T02:53:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"56014d48-4f02-412d-a77b-0b135d8472ce","html_url":"https://github.com/JarryShaw/Scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JarryShaw/Scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JarryShaw%2FScripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JarryShaw%2FScripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JarryShaw%2FScripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JarryShaw%2FScripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JarryShaw","download_url":"https://codeload.github.com/JarryShaw/Scripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JarryShaw%2FScripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33174091,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash"],"created_at":"2025-06-18T10:43:51.106Z","updated_at":"2026-05-18T10:05:30.993Z","avatar_url":"https://github.com/JarryShaw.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scripts\n\nJust some useful bash scripts.\n\n- [Daily](https://github.com/JarryShaw/jsdaily)\n    * [`update`](https://github.com/JarryShaw/jsdaily#update)\n        - [Atom](https://github.com/JarryShaw/jsdaily#update_apm)\n        - [Python](https://github.com/JarryShaw/jsdaily#update_pip)\n        - [Homebrew](https://github.com/JarryShaw/jsdaily#update_brew)\n        - [Caskroom](https://github.com/JarryShaw/jsdaily#update_cask)\n        - [App Store](https://github.com/JarryShaw/jsdaily#update_apptore)\n    * [`uninstall`](https://github.com/JarryShaw/jsdaily#uninstall)\n        - [Python](https://github.com/JarryShaw/jsdaily#uninstall_pip)\n        - [Homebrew](https://github.com/JarryShaw/jsdaily#uninstall_brew)\n        - [Caskroom](https://github.com/JarryShaw/jsdaily#uninstall_cask)\n    * [`reinstall`](https://github.com/JarryShaw/jsdaily#reinstall)\n        - [Homebrew](https://github.com/JarryShaw/jsdaily#reinstall_brew)\n        - [Caskroom](https://github.com/JarryShaw/jsdaily#reinstall_cask)\n    * [`postinstall`](https://github.com/JarryShaw/jsdaily#postinstall)\n        - [Homebrew](https://github.com/JarryShaw/jsdaily#postinstall_brew)\n    * [`dependency`](https://github.com/JarryShaw/jsdaily#dependency)\n        - [Python](https://github.com/JarryShaw/jsdaily#dependency_pip)\n        - [Homebrew](https://github.com/JarryShaw/jsdaily#dependency_brew)\n\n- [Kali Scripts](#kali)\n    * [`acccheck`](#acccheck)\n    * [`firewalk`](#firewalk)\n    * [`ident-user-enum`](#ident-user-enum)\n    * [`nutscan-unixwiz`](#nutscan-unixwiz)\n    * [`nmap`](#nmap)\n    * [`zenmap`](#zenmap)\n        - [Intense Scan](#intense)\n        - [Quick Scan](#quick)\n        - [Slow Scan](#slow)\n\n- [Others](#others)\n    * [`startup`](#startup)\n    * [`colour`](#colour)\n    * [`ansi`](#ansi)\n    * [`pypi`](#pypi)\n    * [`pypitest`](#pypitest)\n    * [`piptest`](#piptest)\n\n---\n\n\u0026nbsp;\n\n\u003ca name=\"kali\"\u003e \u003c/a\u003e\n\n## Kali\n\n \u003e Following descriptions comes from [Kali Linux Penetration Testing Tools](https://tools.kali.org/)\n\n\u003ca name=\"acccheck\"\u003e \u003c/a\u003e\n\n##### [`acccheck`](https://labs.portcullis.co.uk/tools/acccheck/)\n\n```\nacccheck -t -v ${dst}\n```\n\n\u0026emsp; The tool is designed as a password dictionary attack tool that targets windows authentication via the SMB protocol. It is really a wrapper script around the ‘smbclient’ binary, and as a result is dependent on it for its execution.\n\n\u003ca name=\"firewalk\"\u003e \u003c/a\u003e\n\n##### [`firewalk`](http://packetfactory.openwall.net/projects/firewalk/)\n\n```\nfirewalk -S0-65535 -i eth0 -n -pTCP ${src} ${dst}\n```\n\n\u0026emsp; Firewalk is an active reconnaissance network security tool that attempts to determine what layer 4 protocols a given IP forwarding device will pass. Firewalk works by sending out TCP or UDP packets with a TTL one greater than the targeted gateway. If the gateway allows the traffic, it will forward the packets to the next hop where they will expire and elicit an ICMP_TIME_EXCEEDED message. If the gateway hostdoes not allow the traffic, it will likely drop the packets on the floor and we will see no response.\n\n\u0026emsp; To get the correct IP TTL that will result in expired packets one beyond the gateway we need to ramp up hop-counts. We do this in the same manner that traceroute works. Once we have the gateway hopcount (at that point the scan is said to be `bound`) we can begin our scan.\n\n\u0026emsp; It is significant to note the fact that the ultimate destination host does not have to be reached. It just needs to be somewhere downstream, on the other side of the gateway, from the scanning host.\n\n\u003ca name=\"ident-user-enum\"\u003e \u003c/a\u003e\n\n##### [`ident-user-enum`](http://pentestmonkey.net/tools/user-enumeration/ident-user-enum)\n\n```\nident-user-enum ${dst} ${dstport}\n```\n\n\u0026emsp; ident-user-enum is a simple PERL script to query the ident service (113/TCP) in order to determine the owner of the process listening on each TCP port of a target system.\nThis can help to prioritise target service during a pentest (you might want to attack services running as root first). Alternatively, the list of usernames gathered can be used for password guessing attacks on other network services.\n\n\u003ca name=\"nbtscan-unixwiz\"\u003e \u003c/a\u003e\n\n##### [`nbtscan-unixwiz`](http://unixwiz.net/tools/nbtscan.html)\n\n```\nnbtscan -r ${dst}\n```\n\n\u0026emsp; This is a command-line tool that scans for open NETBIOS nameservers on a local or remote TCP/IP network, and this is a first step in finding of open shares. It is based on the functionality of the standard Windows tool nbtstat, but it operates on a range of addresses instead of just one.\n\n\u003ca name=\"nmap\"\u003e \u003c/a\u003e\n\n##### [`nmap`](http://insecure.org/)\n\n```\nnmap -v -A ${dst}\n```\n\n\u0026emsp; Nmap (“Network Mapper”) is a free and open source (license) utility for network discovery and security auditing. Many systems and network administrators also find it useful for tasks such as network inventory, managing service upgrade schedules, and monitoring host or service uptime. Nmap uses raw IP packets in novel ways to determine what hosts are available on the network, what services (application name and version) those hosts are offering, what operating systems (and OS versions) they are running, what type of packet filters/firewalls are in use, and dozens of other characteristics. It was designed to rapidly scan large networks, but works fine against single hosts. Nmap runs on all major computer operating systems, and official binary packages are available for Linux, Windows, and Mac OS X. In addition to the classic command-line Nmap executable, the Nmap suite includes an advanced GUI and results viewer (Zenmap), a flexible data transfer, redirection, and debugging tool (Ncat), a utility for comparing scan results (Ndiff), and a packet generation and response analysis tool (Nping).\n\n\u003ca name=\"zenmap\"\u003e \u003c/a\u003e\n\n##### [`zenmap`](https://nmap.org/zenmap/)\n\n\u0026emsp; Zenmap is the official Nmap Security Scanner GUI. It is a multi-platform (Linux, Windows, Mac OS X, BSD, etc.) free and open source application which aims to make Nmap easy for beginners to use while providing advanced features for experienced Nmap users. Frequently used scans can be saved as profiles to make them easy to run repeatedly. A command creator allows interactive creation of Nmap command lines. Scan results can be saved and viewed later. Saved scan results can be compared with one another to see how they differ. The results of recent scans are stored in a searchable database.\n\n \u003e Following scan modes were defined in [this page](https://svn.nmap.org/nmap/zenmap/share/zenmap/config/scan_profile.usp).\n\n\u003ca name=\"intense\"\u003e \u003c/a\u003e\n\n1. Intense scan, all TCP ports\n\n```\nnmap -p 1-65535 -T4 -A -v ${dst}\n```\n\n\u0026emsp; Scans all TCP ports, then does OS detection (-O), version detection (-sV), script scanning (-sC), and traceroute (--traceroute).\n\n\u003ca name=\"quick\"\u003e \u003c/a\u003e\n\n2. Quick scan plus\n\n```\nnmap -sV -T4 -O -F --version-light ${dst}\n```\n\n\u0026emsp; A quick scan plus OS and version detection.\n\n\u003ca name=\"slow\"\u003e \u003c/a\u003e\n\n3. Slow comprehensive scan\n\n```\nnmap -sS -sU -T4 -A -v -PE -PS80,443 -PA3389 -PP -PU40125 -PY --source-port 53 --script \"default or (discovery and safe)\" ${dst}\n```\n\n\u0026emsp; This is a comprehensive, slow scan. Every TCP and UDP port is scanned. OS detection (-O), version detection (-sV), script scanning (-sC), and traceroute (--traceroute) are all enabled. Many probes are sent for host discovery. This is a highly intrusive scan.\n\n\u0026nbsp;\n\n\u003ca name=\"others\"\u003e \u003c/a\u003e\n\n## Others\n\n\u003ca name=\"startup\"\u003e \u003c/a\u003e\n\n##### `startup` - Startup script for Raspberry Pi\n\n\u0026emsp; When screen sharing with [Raspberry Pi](https://raspberrypi.org/) over [`tightvncserver`](http://tightvnc.com), some startup commands are needed to proceed.\n\n\u003ca name=\"colour\"\u003e \u003c/a\u003e\n\n##### `colour` - A lovely colourful script\n\n\u0026emsp; This script uses `tput setaf` to display contents with colours in terminal. Note that, it only works ideal on macOS.\n\n\u003ca name=\"ansi\"\u003e \u003c/a\u003e\n\n##### `ansi` - A simple ANSI sample script\n\n\u0026emsp; This script uses ANSI escape code to display magic contents in terminal. Note that, it only works ideal on macOS.\n\n\u003ca name=\"pypi\"\u003e \u003c/a\u003e\n\n##### `pypi` - Upload your package to PyPI \u0026 TestPyPI\n\n\u0026emsp; This script helps to upload your Python packages to [PyPI](http://pypi.org) and [TestPyPI](http://test.pypi.org), which makes it downloadable through `pip`.\n\n\u0026emsp; To setup this script on your Mac, use commands below:\n\n```\ncp pypi.sh /usr/local/bin/pypi\nchmod 777 /usr/local/bin/pypi\n```\n\n\u0026emsp; And to use this script, change your working directory to where you would like to run `pypi`, which should contains a `setup.py` file, then simply type `pypi` and enter, all will be done.\n\n```\ncd your-working-directory\npypi\n```\n\n\u003ca name=\"pypitest\"\u003e \u003c/a\u003e\n\n##### `pypitest` - Register your package in PyPI \u0026 TestPyPI\n\n\u0026emsp; This script helps to upload your Python packages to [TestPyPI](http://test.pypi.org) only.\n\n\u0026emsp; To setup this script on your Mac, use commands below:\n\n```\ncp pypi.sh /usr/local/bin/pypitest\nchmod 777 /usr/local/bin/pypitest\n```\n\n\u0026emsp; And to use this script, change your working directory to where you would like to run `pypitest`, which should contains a `setup.py` file, then simply type `pypitest` and enter, all will be done.\n\n```\ncd your-working-directory\npypitest\n```\n\n\u003ca name=\"piptest\"\u003e \u003c/a\u003e\n\n##### `piptest` - Download packages from TestPyPI\n\n__NOTE: MAC ONLY__\n\n\u0026emsp; This script helps to download packages from [TestPyPI](http://test.pypi.org).\n\n\u0026emsp; To setup this script on your Mac, use commands below:\n\n```\ncp pypi.sh /usr/local/bin/piptest\nchmod 777 /usr/local/bin/piptest\n```\n\n\u0026emsp; And to use this script, determine which pip version to use first, then use commands below:\n\n```\npiptest [[pip|pypy]version] package\n```\n\n\u0026emsp; Registered versions shown as below:\n\n|   Code    |                         Description                          |\n| :-------: | :----------------------------------------------------------: |\n|    20     | /Library/Frameworks/Python.framework/Versions/2.0/bin/pip2.0 |\n|    21     | /Library/Frameworks/Python.framework/Versions/2.1/bin/pip2.1 |\n|    22     | /Library/Frameworks/Python.framework/Versions/2.2/bin/pip2.2 |\n|    23     | /Library/Frameworks/Python.framework/Versions/2.3/bin/pip2.3 |\n|    24     | /Library/Frameworks/Python.framework/Versions/2.4/bin/pip2.4 |\n|    25     | /Library/Frameworks/Python.framework/Versions/2.5/bin/pip2.5 |\n|    26     | /Library/Frameworks/Python.framework/Versions/2.6/bin/pip2.6 |\n|    27     | /Library/Frameworks/Python.framework/Versions/2.7/bin/pip2.7 |\n|    30     | /Library/Frameworks/Python.framework/Versions/3.0/bin/pip3.0 |\n|    31     | /Library/Frameworks/Python.framework/Versions/3.1/bin/pip3.1 |\n|    32     | /Library/Frameworks/Python.framework/Versions/3.2/bin/pip3.2 |\n|    33     | /Library/Frameworks/Python.framework/Versions/3.3/bin/pip3.3 |\n|    34     | /Library/Frameworks/Python.framework/Versions/3.4/bin/pip3.4 |\n|    35     | /Library/Frameworks/Python.framework/Versions/3.5/bin/pip3.5 |\n|    36     | /Library/Frameworks/Python.framework/Versions/3.6/bin/pip3.6 |\n|    37     | /Library/Frameworks/Python.framework/Versions/3.7/bin/pip3.7 |\n| 2 \\| pip2 |               /usr/local/opt/python@2/bin/pip2               |\n| 3 \\| pip3 |               /usr/local/opt/python@3/bin/pip3               |\n|   pypy2   |               /usr/local/opt/pypy/bin/pip_pypy               |\n|   pypy3   |              /usr/local/opt/pypy3/bin/pip_pypy3              |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjarryshaw%2Fscripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjarryshaw%2Fscripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjarryshaw%2Fscripts/lists"}