Skip to content
This repository was archived by the owner on Mar 6, 2025. It is now read-only.

pkgforge-security/certstream-old

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • About:

!# Install CLI
!# With root
sudo curl -qfsSL "https://bin.pkgforge.dev/$(uname -m)-$(uname -s)/certstream" -o "/usr/local/bin/certstream" && sudo chmod +xwr "/usr/local/bin/certstream"
sudo eget "https://bin.pkgforge.dev/$(uname -m)-$(uname -s)/certstream" --to "/usr/local/bin/certstream"

!# Without ROOT
curl -qfsSL "https://bin.pkgforge.dev/$(uname -m)-$(uname -s)/certstream" -o "$HOME/bin/certstream" && chmod +xwr "$HOME/bin/certstream"
eget "https://bin.pkgforge.dev/$(uname -m)-$(uname -s)/certstream" --to "$HOME/bin/certstream"

!# Using go
go install -v "github.com/pkgforge-security/certstream-old@main"

!# CLI Usage:
certstream `{OPTS}`
  -url             --> Certstream Server WebSocket URL (ws:// | wss://)      # Use: -url "wss://certstream.calidog.io" if you don't have your own server
  -domains-only    --> Extract and Print only Domains from Certstream Output #Recommended if you don't want to overload the cli (Raw JSON is hugeeee)
  -insecure        --> Allows Invalid/Insecure SSL Connections, for wss://
  -quiet           --> Suppress Standard Error Output (Useful for Automation)
  -skip-heartbeats --> Skip Sending Heartbeat (Ping) Messages to Certstream Server #Some servers will disconnect you if you don't ping

!# Example:
certstream -url "wss://certstream.calidog.io" -domains-only -quiet
!# Install Server
!# With root
sudo curl -qfsSL "https://bin.pkgforge.dev/$(uname -m)-$(uname -s)/certstream-server-go" -o "/usr/local/bin/certstream-server-go" && sudo chmod +xwr "/usr/local/bin/certstream-server-go"
sudo eget "https://bin.pkgforge.dev/$(uname -m)-$(uname -s)/certstream-server-go" --to "/usr/local/bin/certstream-server-go"

!# Without ROOT
curl -qfsSL "https://bin.pkgforge.dev/$(uname -m)-$(uname -s)/certstream-server-go" -o "$HOME/bin/certstream-server-go" && chmod +xwr "$HOME/bin/certstream-server-go"
eget "https://bin.pkgforge.dev/$(uname -m)-$(uname -s)/certstream-server-go" --to "$HOME/bin/certstream-server-go"

!# Config:
wget "https://raw.githubusercontent.com/pkgforge-security/certstream-old/server_config.yaml" -O "/tmp/server_config.yaml"

!# Usage: https://github.com/d-Rickyy-b/certstream-server-go#connecting
Default Addr ::8888
certstream-server-go -config "/tmp/server_config.yaml"

!# Client
certstream -url "ws://localhost:8888" -domains-only -quiet

!# Build CLI
  pushd "$(mktemp -d)" && mkdir "./certstream" && cd "./certstream"
  curl -qfsSLJO "https://raw.githubusercontent.com/pkgforge-security/certstream-old/main.go"
  #curl -qfsSLJO "https://raw.githubusercontent.com/pkgforge-security/certstream-old/go.mod"
  go mod init "github.com/pkgforge-security/certstream-old" ; go mod tidy
  go get github.com/pkgforge-security/certstream-old
  CGO_ENABLED=0 go build -v -ldflags="-s -w -extldflags '-static'" -o "./certstream"
  file "./certstream" ; ldd "./certstream" ; ls -lah "./certstream"

!# Build Server
  pushd "$(mktemp -d)" && git clone --filter "blob:none" "https://github.com/d-Rickyy-b/certstream-server-go" && cd "./certstream-server-go"
  CGO_ENABLED=0 go build -v -ldflags="-s -w -extldflags '-static'" -o "./certstream-server-go" "./cmd/main.go"
  mv "./certstream-server-go" "$HOME/bin/certstream-server-go" ; popd ; go clean -cache -fuzzcache -modcache -testcache

About

archived, kept for reference purpose [Maintainer=@Azathothas]

Resources

License

Stars

Watchers

Forks

Languages