Skip to content

Commit

Permalink
Merge pull request #351 from Karmhack/main
Browse files Browse the repository at this point in the history
Adding Postman to Exegol
  • Loading branch information
QU35T-code authored Jun 8, 2024
2 parents ecab296 + 6d92e55 commit b42de7d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions sources/assets/shells/history.d/postman
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
postman &> /dev/null &
22 changes: 22 additions & 0 deletions sources/install/package_web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,27 @@ function install_katana() {
add-to-list "katana,https://github.com/projectdiscovery/katana,A next-generation crawling and spidering framework."
}

function install_postman() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing Postman"
local archive_name
if [[ $(uname -m) = 'x86_64' ]]; then
archive_name="linux_64"
elif [[ $(uname -m) = 'aarch64' ]]; then
archive_name="linux_arm64"
fi
curl -L "https://dl.pstmn.io/download/latest/${archive_name}" -o /tmp/postman.tar.gz
tar -xf /tmp/postman.tar.gz --directory /tmp
rm /tmp/postman.tar.gz
mv /tmp/Postman /tmp/postman
mv /tmp/postman /opt/tools/postman
ln -s /opt/tools/postman/app/Postman /opt/tools/bin/postman
fapt libsecret-1-0
add-history postman
add-test-command "which postman"
add-to-list "postman,https://www.postman.com/,API platform for testing APIs"
}

# Package dedicated to applicative and active web pentest tools
function package_web() {
set_env
Expand Down Expand Up @@ -944,6 +965,7 @@ function package_web() {
install_sslscan # SSL/TLS scanner
install_jsluice # Extract URLs, paths, secrets, and other interesting data from JavaScript source code
install_katana # A next-generation crawling and spidering framework
install_postman # Postman - API platform for testing APIs
end_time=$(date +%s)
local elapsed_time=$((end_time - start_time))
colorecho "Package web completed in $elapsed_time seconds."
Expand Down

0 comments on commit b42de7d

Please sign in to comment.