Hacking Articles Tips Tricks Videos Tutorials
471 subscribers
65.9K photos
15 videos
157 files
132K links
Exploit
Pentesting
Hacking
Red Team
Blue Team
Kali Linux
Bug Bounty
Black Hat
Cyber security etc

@Hacking_Video
@Hacking_attack
Download Telegram
Force the subdomains used to be the one that is requested. Will fail the bind if it exists already --geodb Use a geodb to verify country IP address association for IP filtering -h, --help help for sish -i, --http-address string The address to listen for HTTP connections (default "localhost:80") --http-load-balancer Enable the HTTP load balancer (multiple clients can bind the same domain) --http-port-override int The port to use for http command output. This does not effect ports used for connecting, it's for cosmetic use only --https Listen for HTTPS connections. Requires a correct --https-certificate-directory -t, --https-address string The address to listen for HTTPS connections (default "localhost:443") -s, --https-certificate-directory string The directory containing HTTPS certificate files (name.crt and name.key). There can be many crt/key pairs (default "deploy/ssl/") --https-ondemand-certificate Enable retrieving certificates on demand via Let's Encrypt --https-ondemand-certificate-accept-terms Accept the Let's Encrypt terms --https-ondemand-certificate-email string The email to use with Let's Encrypt for cert notifications. Can be left blank --https-port-override int The port to use for https command output. This does not effect ports used for connecting, it's for cosmetic use only --idle-connection Enable connection idle timeouts for reads and writes (default true) --idle-connection-timeout duration Duration to wait for activity before closing a connection for all reads and writes (default 5s) --load-templates Load HTML templates. This is required for admin/service consoles (default true) --load-templates-directory string The directory and glob parameter for templates that should be loaded (default "templates/*") --localhost-as-all Enable forcing localhost to mean all interfaces for tcp listeners (default true) --log-to-client Enable logging HTTP and TCP requests to the client --log-to-file Enable writing log output to file, specified by log-to-file-path --log-to-file-compress Enable compressing log output files --log-to-file-max-age int The maxium number of days to store log output in a file (default 28) --log-to-file-max-backups int The maxium number of rotated logs files to keep (default 3) --log-to-file-max-size int The maximum size of outputed log files in megabytes (default 500) --log-to-file-path string The file to write log output to (default "/tmp/sish.log") --log-to-stdout Enable writing log output to stdout (default true) --ping-client Send ping requests to the underlying SSH client. This is useful to ensure that SSH connections are kept open or close cleanly (default true) --ping-client-interval duration Duration representing an interval to ping a client to ensure it is up (default 5s) --ping-client-timeout duration Duration to wait for activity before closing a connection after sending a ping to a client (default 5s) -n, --port-bind-range string Ports or port ranges that sish will allow to be bound when a user attempts to use TCP forwarding (default "0,1024-65535") -l, --private-key-location string The location of the
SSH server private key. sish will create a private key here if it doesn't exist using the --private-key-passphrase to encrypt it if supplied (default "deploy/keys/ssh_key") -p, --private-key-passphrase string Passphrase to use to encrypt the server private key (default "S3Cr3tP4$$phrAsE") --proxy-protocol Use the proxy-protocol while proxying connections in order to pass-on IP address and port information --proxy-protocol-listener Use the proxy-protocol to resolve ip addresses from user connections --proxy-protocol-policy string What to do with the proxy protocol header. Can be use, ignore, reject, or require (default "use") --proxy-protocol-timeout duration The duration to wait for the proxy proto header (default 200ms) --proxy-protocol-use-timeout Use a timeout for the proxy-protocol read -q, --proxy-protocol-version string What version of the proxy protocol to use. Can either be 1, 2, or userdefined. If userdefined, the user needs to add a command to SSH called proxyproto:version (ie proxyproto:1) (default "1") --redirect-root Redirect the root domain to the location defined in --redirect-root-location (default true) -r, --redirect-root-location string The location to redirect requests to the root domain to instead of responding with a 404 (default "https://github.com/antoniomika/sish") --service-console Enable the service console for each service and send the info to connected clients -m, --service-console-token string The token to use for service console access. Auto generated if empty for each connected tunnel -a, --ssh-address string The address to listen for SSH connections (default "localhost:2222") --tcp-aliases Enable the use of TCP aliasing --tcp-load-balancer Enable the TCP load balancer (multiple clients can bind the same port) --time-format string The time format to use for both HTTP and general log messages (default "2006/01/02 - 15:04:05") --verify-dns Verify DNS information for hosts and ensure it matches a connecting users sha256 key fingerprint (default true) --verify-ssl Verify SSL certificates made on proxied HTTP connections (default true) -v, --version version for sish -y, --whitelisted-countries string A comma separated list of whitelisted countries. Applies to HTTP, TCP, and SSH connections -w, --whitelisted-ips string A comma separated list of whitelisted ips. Applies to HTTP, TCP, and SSH connections

Download Sish (https://github.com/antoniomika/sish)
Misconfiguration in Change-password Functionality Leads to Account TakeoverContinue reading on Medium Β» (https://0x2m.medium.com/misconfiguration-in-change-password-functionality-leads-to-account-takeover-1314b5507abf?source=rss------bug_bounty-5)
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
TOR: Privacy, Anonymity & Security

https://cdn-images-1.medium.com/max/1200/1*fqNnLB1t5210L_KoKi-14Q.png
Tor makes it possible for users to hide their locations while offering various kinds of services, such as web publishing or an instant…

Continue reading on Medium Β»
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Learn From a Hacker- Ethical Hacking 101 | Begin your journey to becoming an Ethical Hacker TODAY!

As a expert penetration tester, there’s one element that not often if ever receives discussed. Is it that the frequent photo of a hacker…

Continue reading on Medium Β»
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Breaking Instagramβ€Šβ€”β€ŠAutomating Page Growth: Part 1

https://cdn-images-1.medium.com/max/600/1*l12S5ARUCCh0QYQBWdvmPw.jpeg
This story starts around two years ago. I stumbled across a video on YouTube that promoted the follow-for-follow technique to gain…

Continue reading on Medium Β»
(POC) Update business fyi message as Facebook page analyst

Description / ImpactContinue reading on Medium Β»
Read more...
Hacking Articles Tips Tricks Videos Tutorials
Photo
KitPloit - PenTest Tools!
Sish - HTTP(S)/WS(S)/TCP Tunnels To Localhost Using Only SSH

https://1.bp.blogspot.com/-Yrc1qWcKW94/YHYxtJBL3CI/AAAAAAAAV44/gVb6wKxjjA8fhFfTr9v29aYHHquSoHzqwCNcBGAsYHQ/w640-h480/tunnel.jpg An open source serveo/ngrok alternative. DeployBuilds are made automatically for each commit to the repo and are pushed to Dockerhub. Builds are tagged using a commit sha, branch name, tag, latest if released on main. You can find a list here. Each release builds separate sishbinaries that can be downloaded from here for various OS/archs. Feel free to either use the automated binaries or to build your own. If you submit a PR, images are not built by default and will require a retag from a maintainer to be built.

1.
Pull the Docker image

* docker pull antoniomika/sish:latest2.
Run the image

* docker run -itd --name sish \
-v ~/sish/ssl:/ssl \
-v ~/sish/keys:/keys \
-v ~/sish/pubkeys:/pubkeys \
--net=host antoniomika/sish:latest \
--ssh-address=:22 \
--http-address=:80 \
--https-address=:443 \
--https=true \
--https-certificate-directory=/ssl \
--authentication-keys-directory=/pubkeys \
--private-key-location=/keys/ssh_key \
--bind-random-ports=false
3.
SSH to your host to communicate with sish

* ssh -p 2222 -R 80:localhost:8080 ssi.shDocker ComposeYou can also use Docker Compose to setup your sish instance. This includes taking care of SSL via Let's Encrypt for you. This uses the adferrand/dnsrobocert container to handle issuing wildcard certifications over DNS. For more information on how to use this, head to that link above. Generally, you can deploy your service like so: docker-compose -f deploy/docker-compose.yml up -dThe domain and DNS auth info in deploy/docker-compose.ymland deploy/le-config.ymlshould be updated to reflect your needs. You will also need to create a symlink that points to your domain's Let's Encrypt certificates like: ln -s /etc/letsencrypt/live/<your/fullchain.pem deploy/ssl/<your.crt
ln -s /etc/letsencrypt/live/<your/privkey.pem deploy/ssl/<your.key
Careful: the symlinks need to point to /etc/letsencrypt, not a relative path. The symlinks will not resolve on the host filesystem, but they will resolve inside of the sish container because it mounts the letsencrypt files in /etc/letsencrypt, not ./letsencrypt.

I use these files in my deployment of ssi.shand have included them here for consistency. Google Cloud PlatformThere is a tutorial for creating an instance in Google Cloud Platform with sish fully setup that can be found here. It can be accessed through Google Cloud Shell. Open in Google Cloud ShellHow it worksSSH can normally forward local and remote ports. This service implements an SSH server that only handles forwarding and nothing else. The service supports multiplexing connections over HTTP/HTTPS with WebSocket support. Just assign a remote port as port 80to proxy HTTP traffic and 443to proxy HTTPS traffic. If you use any other remote port, the server will listen to the port for TCP connections, but only if that port is available.

You can choose your own subdomain instead of relying on a randomly assigned one by setting the --bind-random-subdomainsoption to falseand then selecting a subdomain by prepending it to the remote port specifier: ssh -p 2222 -R foo:80:localhost:8080 ssi.shIf the selected subdomain is not taken, it will be assigned to your connection. Supported forwarding typesHTTP forwardingsish can forward any number of HTTP connections through SSH. It also provides logging the connections to the connected client that has forwarded the connection and a web int[...]
Hacking Articles Tips Tricks Videos Tutorials
KitPloit - PenTest Tools! Sish - HTTP(S)/WS(S)/TCP Tunnels To Localhost Using Only SSH https://1.bp.blogspot.com/-Yrc1qWcKW94/YHYxtJBL3CI/AAAAAAAAV44/gVb6wKxjjA8fhFfTr9v29aYHHquSoHzqwCNcBGAsYHQ/w640-h480/tunnel.jpg An open source serveo/ngrok alternative.…
erface to see full request and responses made to each forwarded connection. Each webinterface can be unique to the forwarded connection or use a unified access token. To make use of HTTP forwarding, ports [80, 443]are used to tell sish that a HTTP connection is being forwarded and that HTTP virtualhosting should be defined for the service. For example, let's say I'm developing a HTTP webservice on my laptop at port 8080that uses websockets and I want to show one of my coworkers who is not near me. I can forward the connection like so: ssh -R hereiam:80:localhost:8080 ssi.shAnd then share the link https://hereiam.ssi.shwith my coworker. They should be able to access the service seamlessly over HTTPS, with full websocket support working fine. Let's say hereiam.ssi.shisn't available, then sish will generate a random subdomain and give that to me. TCP forwardingAny TCP based service can be used with sish for TCP and alias forwarding. TCP forwarding will establish a remote port on the server that you deploy sish to and will forward all connections to that port through the SSH connection and to your local device. For example, if I was to run a SSH server on my laptop with port 22and want to be able to access it from anywhere at ssi.sh:2222, I can use an SSH command on my laptop like so to forward the connection: ssh -R 2222:localhost:22 ssi.shI can use the forwarded connection to then access my laptop from anywhere: ssh -p 2222 ssi.shTCP alias forwardingLet's say instead I don't want the service to be accessible by the rest of the world, you can then use a TCP alias. A TCP alias is a type of forwarded TCP connection that only exists inside of sish. You can gain access to the alias by using SSH with the -Wflag, which will forwarding the SSH process' stdin/stdout to the fowarded TCP connection. In combination with authentication, this will guarantee your remote service is safe from the rest of the world because you need to login to sish before you can access it. Changing the example above for this would mean running the following command on my laptop: ssh -R mylaptop:22:localhost:22 ssi.shsish won't publish port 22 or 2222 to the rest of the world anymore, instead it'll retain a pointer saying that TCP connections made from within SSH after a user has authenticated to mylaptop:22should be forwarded to the forwarded TCP tunnel. Then I can use the forwarded connection access my laptop from anywhere using: ssh -o ProxyCommand="ssh -W %h:%p ssi.sh" mylaptopShorthand for which is this with newer SSH versions: ssh -J ssi.sh mylaptopAuthenticationIf you want to use this service privately, it supports both public key and password authentication. To enable authentication, set --authentication=trueas one of your CLI options and be sure to configure --authentication-passwordor --authentication-keys-directoryto your liking. The directory provided by --authentication-keys-directoryis watched for changes and will reload the authorized keys automatically. The authorized cert index is regenerated on directory modification, so removed public keys will also automatically be removed. Files in this directory can either be single key per file, or multiple keys per file separated by newlines, similar to authorized_keys. Password auth can be disabled by setting --authentication-password=""as a CLI option.

One of my favorite ways of using this for authentication is like so: sish@sish0:~/sish/pubkeys# curl https://github.com/antoniomika.keys > antoniomikaThis will load my public keys from GitHub, place them in the directory that sish is watching, and then load the pubkey. As soon as this command is run, I can SSH normally and it [...]
Hacking Articles Tips Tricks Videos Tutorials
erface to see full request and responses made to each forwarded connection. Each webinterface can be unique to the forwarded connection or use a unified access token. To make use of HTTP forwarding, ports [80, 443]are used to tell sish that a HTTP connection…
will authorize me. Custom domainssish supports allowing users to bring custom domains to the service, but SSH key auth is required to be enabled. To use this feature, you must setup TXT and CNAME/A records for the domain/subdomain you would like to use for your forwarded connection. The CNAME/A record must point to the domain or IP that is hosting sish. The TXT record must be be a key=valstring that looks like: sish=SSHKEYFINGERPRINT Where SSHKEYFINGERPRINTis the fingerprint of the key used for logging into the server. You can set multiple TXT records and sish will check all of them to ensure at least one is a match. You can retrieve your key fingerprint by running: sish=SSHKEYFINGERPRINT If you trust the users connecting to sish and would like to allow any domain to be used with sish (bypassing verification), there are a few added flags to aid in this. This is especially useful when adding multiple wildcard certificates to sish in order to not need to automatically provision Let's Encrypt certs. To disable verfication, set --bind-any-host=true, which will allow and subdomain/domain combination to be used. To only allow subdomains of a certain subset of domains, you can set --bind-hoststo a comma separated list of domains that are allowed to be bound.

To add certficates for sish to use, configure the --https-certificate-directoryflag to point to a dir that is accessible by sish. In the directory, sish will look for a combination of files that look like name.crtand name.key. namecan be arbitrary in either case, it just needs to be unique to the cert and key pair to allow them to be loaded into sish. Load balancingsish can load balance any type of forwarded connection, but this needs to be enabled when starting sish using the --http-load-balancer, --tcp-load-balancer, and --alias-load-balancerflags. Let's say you have a few edge nodes (raspberry pis) that are running a service internally but you want to be able to balance load across these devices from the outside world. By enabling load balancing in sish, this happens automatically when a device with the same forwarded TCP port, alias, or HTTP subdomain connects to sish. Connections will then be evenly distributed to whatever nodes are connected to sish that match the forwarded connection. Whitelisting IPsWhitelisting IP ranges or countries is also possible. Whole CIDR ranges can be specified with the --whitelisted-ipsoption that accepts a comma-separated string like "192.30.252.0/22,185.199.108.0/22". If you want to whitelist a single IP, use the /32range.

To whitelist countries, use --whitelisted-countrieswith a comma-separated string of countries in ISO format (for example, "pt" for Portugal). You'll also need to set --geodbto true. DNS SetupTo use sish, you need to add a wildcard DNS record that is used for multiplexed subdomains. Adding an Arecord with *as the subdomain to the IP address of your server is the simplest way to achieve this configuration. Demo - At this time, the demo instance has been set to require auth due to abuseThere is a demo service (and my private instance) currently running on ssi.shthat doesn't require any authentication. This service provides default logging (errors, connection IP/username, and pubkey fingerprint). I do not log any of the password authentication data or the data sent within the service/tunnels. My deploy uses the exact deploy steps that are listed above. This instance is for testing and educational purposes only. You can deploy this extremely easily on any host (Google Cloud Platform provides an always-free instance that this should run perfectly on). If the service begins to accrue a [...]
Deep Web
I do not understand

How can owners of big markets not buying their way out of jail? Since they got millions of dollars? And we al know there is a lot of manipulation and corruption.

submitted by /u/Peort
[link] [comments]