Sitemap
Joshua Suksakorn

Joshua Suksakorn

Cybersecurity, Ethical Hacker, Penetration Tester, CTF Player, Content Creator,

CURL Command for Cybersecurity

1 min readOct 22, 2024

--

Press enter or click to view image in full size
CURL Command Line

What is CURL command?

  • CURL is a tool that use for send HTTP or HTTPS request to the server.

Basic CURL commands

  • Example command.
$ curl https://example.com
$ curl 'IP address'

    Get Joshua Suksakorn’s stories in your inbox

    Join Medium for free to get updates from this writer.

  • Show HTTP header.
$ curl -I https://example.com
# Print only http-header

$ curl -i https://example.com
# Print http-header and source code of the website
  • Download file from a website.
$ curl -o source.html https://example.com
# Save the output from this website name source.html

$ curl -s -O https://example.com/robots.txt
# Don't show progress and write output to a local file named like the remote file we get name robots.txt.
  • Save cookies to a file.
$ curl -c cookies.txt https://www.google.com/
# Save the cookies value to a file name 'cookies.txt'

These are just a basic ‘curl’ command that you can use in the real world of bug bounty program. You can learn and play with it for improve your skills.

--

--

Joshua Suksakorn
Joshua Suksakorn

Cybersecurity, Ethical Hacker, Penetration Tester, CTF Player, Content Creator,