Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/p0dalirius/codeigniter-session-unsign

Command line tool to fetch, decode and brute-force CodeIgniter session cookies by guessing and bruteforcing secret keys.
https://github.com/p0dalirius/codeigniter-session-unsign

codeigniter cookie crack php session unsign

Last synced: 5 days ago
JSON representation

Command line tool to fetch, decode and brute-force CodeIgniter session cookies by guessing and bruteforcing secret keys.

Awesome Lists containing this project

README

        

![](./.github/banner.png)


A multithreaded bruteforcer of CodeIgniter ci_session cookies.


GitHub release (latest by date)

YouTube Channel Subscribers


## Features

- [x] Extract the `ci_session` cookie from an URL (with `--url`) or from a file (with `--cookie`)
- [x] Progress updated every second with the number of processed hashes per second.
- [x] Multithreaded bruteforce.

## Usage

```
$ ./CodeIgniter-session-unsign.py -h
CodeIgniter-session-unsign v1.1 - by @podalirius_

usage: CodeIgniter-session-unsign.py [-h] [-u URL | -c COOKIE] -w WORDLIST [-t THREADS] [-k] [--md5 MD5 | --sha1 SHA1 | --sha256 SHA256]

Description message

optional arguments:
-h, --help show this help message and exit
-u URL, --url URL URL of the CodeIgniter website.
-c COOKIE, --cookie COOKIE
CodeIgniter session cookie.
-w WORDLIST, --wordlist WORDLIST
Wordlist of keys to test.
-t THREADS, --threads THREADS
Number of threads (default: 8)
-k, --insecure Allow insecure server connections when using SSL (default: False)
--md5 MD5 Use MD5 algorithm.
--sha1 SHA1 Use SHA1 algorithm.
--sha256 SHA256 Use SHA256 algorithm.
```

## Example

```
./CodeIgniter-session-unsign.py -c ./example/cookie -w ./example/wordlist
```

![](./.github/example.png)

## Contributing

Pull requests are welcome. Feel free to open an issue if you want to add other features.

## References
- https://www.websec.ca/publication/blog/insecure-session-data-CodeIgniter