Giter Site home page Giter Site logo

scurl's Introduction

scurl

This is a secure version of curl I wrote for my final project in cs255 (Cryptography). Standard curl has many vulnerabilities, most of which are certificate verification attacks. I implemented the program with this in mind, testing on several thousand sites. I will soon update the repo to contain my test files.

Simply run ./scurl --some-flag https://www.example.com in terminal to obtain the html for a page. I list the valid flags and their meaning below:

• --tlsv1.0, --tlsv1.1, --tlsv1.2, --sslv3, -3 . Runs TLSv1.2 by default

• --ciphers. Which ciphers to use in connection. I.E. -ciphers DHE-DSS-AES256-SHA:DH-RSA-AES256-SHA https://www.stanford.edu/

• --crlfile. Refuses any certificates with one of the offending serial numbers.

• --cacert. Uses file as root CA

• --allow-stale-certs N. When a user invokes scurl with this option with an argument N, scurl will fetch the url if (a) C is an otherwise valid certificate that has expired and (b) C expired within the past N days. The argument N to this option must be a nonnegative integer. If this option is used several times, the last one will be used.

• --pinnedpublickey Refused any URL in which the leaf certificate's digest doesn't match the pinned key's.

See the curl manpage for more details on any of the flags.

scurl's People

Watchers

James Cloos avatar Zack Lawrence avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.