# DamnVulnerableCryptoApp | An App With Really Insecure Crypto

**URL:** <https://onehack.st/t/damnvulnerablecryptoapp-an-app-with-really-insecure-crypto/182290>\
**Category:** Tools & Scripts\
**Tags:** tools, programming\
**Created:** [May 10, 2021, 9:44pm UTC](https://onehack.st/t/damnvulnerablecryptoapp-an-app-with-really-insecure-crypto/182290 "2021-05-10T21:44:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheStrength](https://onehack.st/user_avatar/onehack.st/thestrength/32/46753_2.png) [@TheStrength](https://onehack.st/u/TheStrength)\
**Post date:** [May 10, 2021, 9:44pm UTC](https://onehack.st/t/damnvulnerablecryptoapp-an-app-with-really-insecure-crypto/182290/1 "2021-05-10T21:44:51Z")

</div>

![image](https://onehack.st/uploads/default/original/3X/d/2/d2ed283e1fdf8825d20680763e9ada09c5b880c6.png)

**Why?**

If you try to learn a little bit more about crypto, either because you want to know how the attacks work or just because you want to do safe code, you end up diving really fast into the math behind the algorithms, and for a lot of people this is a NO.

**This project was created with some key points in mind:**

- Real world examples of the crypto attack vectors
- No need to write code to exploit a vulnerability that you are still trying to understand
- No challenge without a solution
- Dead simple documentation. No complex math, no complex formulas. Good old english
- A common place to test different attack vectors
- Make easy for everyone to understand crypto, attacks and preventions.
- Go straight to the point, the challenges are no brain teasers, just a scenario with a crypto vuln.

**Build**

(Make sure you have node installed)

```auto
npm run build-with-deps

```

Or if you already have the dependencies installed you can just run:

```auto
npm run build

```

If you cloned the repo and are having issues in the test phase, it may be due to the line endings. Force linux like line endings in git with:

Change git config to use LF intead of CRLF

```auto
git config --global core.eol lfgit config --global core.autocrlf input

```

**Run**

```auto
npm run start

```

You can change the port with an environment variable:

```auto
PORT=4000 npm run start

```

**Docker**

**From DockerHub**

You can download the latest docker image with:

```auto
docker pull damnvulnerablecryptoapp1/damnvulnerablecryptoapp

```

**Build**

If you prefer to build the docker image yourself run:

```auto
npm build:docker

```

**Run**

By default port 8081 is being exported, So you can map it to your own port:

```auto
docker run -p 8081:8081 <IMAGE_ID>

```

**Developing**

If you want to to develop new features, or just run without building the app you can start by installing dependencies with:

```auto
npm run install-deps

```

Then you need to run independently the frontend and the backend apps.

**Backend**

```auto
cd backend yarn start

```

If you want to change the default port (1234), you can use an environment variable:

```auto
PORT=5000 yarn start

```

**Frontend**

```auto
cd frontendyarn start

```

if you want to change the frontend port (default is 4000) you can set an environment variable:

```auto
PORT=3000 yarn start

```

If you changed the server port you need to specify it when booting the frontend, again, as an environment variable:

```auto
REACT_APP_SERVER_PORT=5000 yarn start

```

**Documentation**

You can find project’s documentation on [github wiki](https://github.com/DamnVulnerableCryptoApp/DamnVulnerableCryptoApp/wiki)

**Some other nice projects crypto related**

- [Crypton](https://github.com/ashutosh1206/Crypton)
- [RSACtfTool](https://github.com/Ganapati/RsaCtfTool)
- [CryptoHack](http://cryptohack.org/)
- [Cryptopals](https://cryptopals.com/)
- [MysteryTwister C3](https://www.mysterytwisterc3.org/en/)

**License**

DamnVulnerableCryptoApp is [MIT](https://tldrlegal.com/license/mit-license) licensed

# Screenshots

[![printscreen1](https://github.com/DamnVulnerableCryptoApp/DamnVulnerableCryptoApp/raw/master/docs/screenshots/1.png)](https://github.com/DamnVulnerableCryptoApp/DamnVulnerableCryptoApp/blob/master/docs/screenshots/1.png) [![printscreen2](https://github.com/DamnVulnerableCryptoApp/DamnVulnerableCryptoApp/raw/master/docs/screenshots/2.png)](https://github.com/DamnVulnerableCryptoApp/DamnVulnerableCryptoApp/blob/master/docs/screenshots/2.png) [![printscreen3](https://github.com/DamnVulnerableCryptoApp/DamnVulnerableCryptoApp/raw/master/docs/screenshots/3.png)](https://github.com/DamnVulnerableCryptoApp/DamnVulnerableCryptoApp/blob/master/docs/screenshots/3.png) [![printscreen4](https://github.com/DamnVulnerableCryptoApp/DamnVulnerableCryptoApp/raw/master/docs/screenshots/4.png)](https://github.com/DamnVulnerableCryptoApp/DamnVulnerableCryptoApp/blob/master/docs/screenshots/4.png)

## GitHub:

> **[GitHub - DamnVulnerableCryptoApp/DamnVulnerableCryptoApp: An app with really insecure crypto. To be used to...](https://github.com/DamnVulnerableCryptoApp/DamnVulnerableCryptoApp/)**
>
> An app with really insecure crypto. To be used to see/test/exploit weak cryptographic implementations as well as to learn a little bit more about crypto, without the need to dive deep into the math behind it
