This is an old revision of the document!
Difficulty
Very easy
esgtools
Goals
esgt is a cli multi tool used internally by eSGR but will work on any standard environment. Please note that some functions (profiles for example) will work best on the eSGR Standard Image 2014 & 2017 & 2020 based in centos 6.9, 7.7 and 8.0 respectively.
Options
- compress - Compress/Uncompress between, Snappy, S2, ZStandard, gzip, zlib, zip, Brotli
- filetype - Will try to identify a file type
- git - Basic git client
- hardware - Retrieve Hardware Information (ram, system, cpu, firmware)
- hash - Create file hash (sha1, sha256, sha512, sha3, sha3 384bit, sha3 512bit, blake2s, blake2b, md5)
- install - Install supported applications (esgtools)
- maintenance - Update esgtools to the latest version
- minify - Minify CSS, HTML, JS, JSON, SVG, XML
- network - Network Related Tools
- Check Internet Access
- Monitor DHCP Leases
- ARP Scan
- NTP Client
- Download Files
- profiles - Install esg profiles for selected apps
- vim
- tmux
- versions - Retrieve version, download link and download any of
- go
- php
- nginx
- rust
- web - Web Tools
- advertising tags
- headers
- max protocol
- site size(experimental)
profiles options
- vim - Install the eSG vim profile
- tmux - Install the eSG tmux profile
web Options
- size - Will calculate website size
- headers - Will dump all http headers from a url
- tags - Will detect tags like Google Analytics and AdSense
- http - Detect http protocol
install Options
- tools - Will install esgtools to /usr/local/bin (v0.6.3+)
Download & Installation
The tool doesn't require any installation just use the following to download it.
From 2020-10-31 we only build windows and linux amd64 releases. All other downloads are older versions of the app.
OS | x64 | x86 | arm | arm64 | ppc64 | ppc64le | mips | mips64 | mipsle | mips64le | s390x |
---|---|---|---|---|---|---|---|---|---|---|---|
Linux | Download | Download | Download | Download | Download | Download | Download | Download | Download | Download | Download |
Windows | Download | Download | Download | ||||||||
OS X | Download | Download | |||||||||
FreeBSD | Download | Download | Download | ||||||||
Dragonfly | |||||||||||
NetBSD | |||||||||||
openBSD | Download | Download | Download | Download | |||||||
Android | |||||||||||
Plan 9 | |||||||||||
Solaris |
You can use curl like this (x64 Linux)
curl -L https://tools.esgr.xyz/download.php?f=esgt_linux_amd64 -o esgt;chmod +x esgt
Usage Examples
Install profiles
./esgt profiles vim
./esgt profiles tmux
hash
./esgt hash filename
web
size
./esgt web size https://eservices-greece.com
headers
./esgt web headers https://eservices-greece.com
tags (analytics etc)
./esgt web tags https://eservices-greece.com
protocol
./esgt web http https://eservices-greece.com
minify
./esgt minify inputfilename outputfilename
Update esgtools
./esgt maintenance -u