Code Monkey home page Code Monkey logo

crackit's Introduction

crackit

Originating from the "brute force" bash script I wrote, crackit times how long it takes your CPU to count up to a number on a specified amount of threads

Usage: ./crackit <possibilities> [threads]
'threads' defaults to the amount of machine cores

Compiling

make will automatically compile using theos if Theos is setup, if not, the universal build be execute using gcc if the CC variable is not set

Building with Theos

Theos is a cross platform build tool. It is used here to allow convenient use of SDKs

If a macOS SDK is available, make MACOS=1 to build for macOS 32 and 64 bit

./make-all.sh will build for iOS and macOS, 32 and 64 bit, and create one FAT (universal) binary

Building Universally

The following command is what I use to compile and test on Ubuntu 16.04

gcc -pthread crackit.c -lm -o crackit

gcc is a popular C compiler, however this has been tested with clang as well

-pthread pthread family (POSIX threading, used for multi-threading)

-lm link against the standard library (required for floor())

-o crackit name the output file "crackit"

crackit's People

Stargazers

 avatar  avatar

Watchers

 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.