# NetAtlas C2 Server Search | Search For C2 Servers Based On Netlas

**URL:** <https://onehack.st/t/netatlas-c2-server-search-search-for-c2-servers-based-on-netlas/268043>\
**Category:** Tools & Scripts\
**Tags:** tools, hacking, freebies\
**Created:** [December 10, 2023, 9:06pm UTC](https://onehack.st/t/netatlas-c2-server-search-search-for-c2-servers-based-on-netlas/268043 "2023-12-10T21:06:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PlayBoy83](https://onehack.st/user_avatar/onehack.st/playboy83/32/164314_2.png) [@PlayBoy83](https://onehack.st/u/PlayBoy83)\
**Post date:** [December 10, 2023, 9:06pm UTC](https://onehack.st/t/netatlas-c2-server-search-search-for-c2-servers-based-on-netlas/268043/1 "2023-12-10T21:06:49Z")

</div>

![image](https://onehack.st/uploads/default/original/3X/e/4/e4ec75ad269327b09aa1d6d67878ff82966bc174.png)

# NetAtlas C2 Server Search

[![Build Status](https://camo.githubusercontent.com/06ead6ea876b8f0febc7d783fc4d2c17037e44fa1d5ad7769e5cc79949e4a790/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d69636861656c32746f332f63322d7365617263682d6e65746c61732f6275696c642e796d6c3f6272616e63683d6d61696e)](https://camo.githubusercontent.com/06ead6ea876b8f0febc7d783fc4d2c17037e44fa1d5ad7769e5cc79949e4a790/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d69636861656c32746f332f63322d7365617263682d6e65746c61732f6275696c642e796d6c3f6272616e63683d6d61696e) [![License](https://camo.githubusercontent.com/edfdbe91de2f8a31731d61875e159c7ed356d7ef54b348a93f64ab4c64e1c657/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d69636861656c32746f332f7072657474792d63616c6461762d706f6c69746563682d7363686564756c653f7374796c653d666c61742d737175617265)](https://github.com/michael2to3/pretty-caldav-politech-schedule/blob/main/LICENSE) [![Junit Jupiter](https://camo.githubusercontent.com/b6fab64c988907c957820e7da4ef899663e6cfad57748e908db0df95740d8641/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4a756e69742d4a7570697465722d677265656e3f7374796c653d666c61742d737175617265)](https://junit.org/junit5/) [![Gradle](https://camo.githubusercontent.com/96d0aa7828d2f4cbc263ea8c41acac67b8416ba653f58587b696b1eebcd78750/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f477261646c652d626c75653f7374796c653d666c61742d737175617265)](https://gradle.org/) [![Codacy Badge](https://camo.githubusercontent.com/07659aee4468bc8181b8208886f32ed7e7629b944aced25fa0afb3d33fe24d03/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3664336332383130653466383434666139383961393837663834353635623764)](https://app.codacy.com/gh/michael2to3/c2-search-netlas/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) [![Codacy Badge](https://camo.githubusercontent.com/eefd5a46669d71af6bde3b19f76fdc116e2a33e1778988427cad9afedbf22533/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f436f7665726167652f3664336332383130653466383434666139383961393837663834353635623764)](https://app.codacy.com/gh/michael2to3/c2-search-netlas/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage) [![Docker Image Size](https://camo.githubusercontent.com/ffcda6a09214c9de1039f9587fb50fd001299639ca1b057b050740cace325252/68747470733a2f2f696d672e736869656c64732e696f2f646f636b65722f696d6167652d73697a652f646f636b65726f6e66756c6c70632f63326465746563743f7374796c653d666c61742d737175617265)](https://hub.docker.com/r/dockeronfullpc/c2detect)

C2 Search Netlas is a Java utility designed to detect Command and Control (C2) servers using the Netlas API. It provides a straightforward and user-friendly CLI interface for searching C2 servers, leveraging the Netlas API to gather data and process it locally.

[![asciicast](https://camo.githubusercontent.com/d540a759250a5b8cd5b630da0cb8d74a202632c93962f41118b03353a0c5af6d/68747470733a2f2f61736369696e656d612e6f72672f612f5130673065676f38534b3937656c4a7654484e3549584c7a732e737667)](https://asciinema.org/a/Q0g0ego8SK97elJvTHN5IXLzs)

## Usage

To utilize this terminal utility, you’ll need a Netlas API key. Obtain your key from the [Netlas](https://netlas.io/) website.

After acquiring your API key, execute the following command to search servers:

c2detect -t \<TARGET\_DOMAIN\> -p \<TARGET\_PORT\> -s \<API\_KEY\> [-v]

Replace `<TARGET_DOMAIN>` with the desired IP address or domain, `<TARGET_PORT>` with the port you wish to scan, and `<API_KEY>` with your Netlas API key. Use the optional `-v` flag for verbose output. For example, to search at the `google.com` IP address on port `443` using the Netlas API key `1234567890abcdef`, enter:

c2detect -t [google.com](http://google.com) -p 443 -s 1234567890abcdef

## Release

To download a release of the utility, follow these steps:

- Visit the repository’s releases page on GitHub.
- Download the latest release file (typically a JAR file) to your local machine.
- In a terminal, navigate to the directory containing the JAR file.
- Execute the following command to initiate the utility:

java -jar c2-search-netlas-.jar -t -p -s

## Docker

To build and start the Docker container for this project, run the following commands:

docker build -t c2detect . docker run -it --rm \ c2detect \ -s “your\_api\_key” \ -t “your\_target\_domain” \ -p “your\_target\_port” \ -v

## Source

To use this utility, you need to have a Netlas API key. You can get the key from the Netlas website. Now you can build the project and run it using the following commands:

./gradlew build java -jar app/build/libs/c2-search-netlas-1.0-SNAPSHOT.jar --help

This will display the help message with available options. To search for C2 servers, run the following command:

java -jar app/build/libs/c2-search-netlas-1.0-SNAPSHOT.jar -t -p -s

This will display a list of C2 servers found in the given IP address or domain.

## Support

| Name | Support |
| --- | --- |
| Metasploit | ✅ |
| Havoc | ❓ |
| Cobalt Strike | ✅ |
| Bruteratel | ✅ |
| Sliver | ✅ |
| DeimosC2 | ✅ |
| PhoenixC2 | ✅ |
| Empire | ❌ |
| Merlin | ✅ |
| Covenant | ❌ |
| Villain | ✅ |
| Shad0w | ❌ |
| PoshC2 | ✅ |

Legend:

- ✅ - Accept/good support
- ❓ - Support unknown/unclear
- ❌ - No support/poor support

## Contributing

If you’d like to contribute to this project, please feel free to create a pull request.

## License

This project is licensed under the License - see the [LICENSE](https://github.com/michael2to3/c2-search-netlas/blob/main/LICENSE) file for details.

## GitHub:

[https://github.com/michael2to3/c2-search-netlas](https://github.com/michael2to3/c2-search-netlas)
