How to test a TCP (or UDP) remote port without telnet or netcat (in a one-liner): (google’s IP and TCP to 443) timeout 1 bash -c '</dev/tcp/216.58.207.46/443 && echo Port is open || echo Port is closed' || echo Connection timeout #shellmagic
10
571
2K
127
0
@climagic #shellmagic Something I just recently learned: curl telnet://127.0.0.1:22 Even when telnet and netcat are not available, curl usually is.
0
19
56
2
0
United States Trends
- 1. Steelers 49.8K posts
- 2. Rodgers 20.5K posts
- 3. Chargers 33.3K posts
- 4. Tomlin 7,772 posts
- 5. Schumer 208K posts
- 6. #BoltUp 2,705 posts
- 7. #HereWeGo 5,511 posts
- 8. Keenan Allen 4,273 posts
- 9. Resign 97.8K posts
- 10. Tim Kaine 15.6K posts
- 11. #RHOP 6,605 posts
- 12. Herbert 11K posts
- 13. Durbin 22.5K posts
- 14. Ladd 4,220 posts
- 15. #ITWelcomeToDerry 3,991 posts
- 16. Jaylen Warren 1,861 posts
- 17. Cornyn 13.5K posts
- 18. #snfonnbc N/A
- 19. Angus King 13.2K posts
- 20. Shaheen 30.2K posts
Loading...
Something went wrong.
Something went wrong.