Jump to content
geno1hacker

Step By Step Instructions

Recommended Posts

Is there any step-by-step instructions on setting up C2?  It can be very confusing and reading the thread makes it more confusing.

1. If you are running on Windows and double click nothing happens.

2. When you go to the command prompt and run a command line it wants a host name or IP address.  What IP address should I be using?  If it is a Cloud shouldn't I be using your IP address?

3. When you talk about a host name should I be using one of my servers?  I'm confused on this.

 

Share this post


Link to post
Share on other sites
9 hours ago, geno1hacker said:

1. If you are running on Windows and double click nothing happens.

Nothing happens because the binary requires some command line arguments to run. If you specify none (which you are doing by simply double clicking) then it will instantly exit.

9 hours ago, geno1hacker said:

2. When you go to the command prompt and run a command line it wants a host name or IP address.  What IP address should I be using?  If it is a Cloud shouldn't I be using your IP address?

The Cloud C2 is designed to be ran on your own infrastructure. You can spin up a DigitalOcean VPS or a AWS instance to host your C2 on, etc. The IP address or hostname would be that of your own server.

 

  • Upvote 1

Share this post


Link to post
Share on other sites

Hello geno1hacker,

If you are using windows Open a command Prompt. 

using command prompt navigate to your C2 .exe download --> (Example) cd c:\users\user\documents\c2\ 

Now just run the command below.

c2_community-windows-64.exe  -hostname example.com  -listenport 80

your server should be up and running. 

Verify by going to localhost on your browser. 

to view all available options just type the name of the .exe 

c2_community-windows-64.exe.

 

  • Upvote 1

Share this post


Link to post
Share on other sites

I can't believe you're really asking those questions. You need to just get the extreme basics down on networking and basic OS usage before you even begin to use this.

  • Like 1

Share this post


Link to post
Share on other sites

Xavious! Thanks for all your help and useful input. Those of us with mind reading skills really enjoy your insights. In 31 years of IT and Network administration I've known many folks like yourself. Fired every single one of them.

X:\Downloads\c2-1.1.1_community\c2_community-windows-64.exe -hostname 10.0.0.1 -listenport 80
Where -hostname can equal your gateway on your network or an actual URL. _listenport for browser in this case

If all goes well you should see something like this:

X:\Users\You>X:\Downloads\c2-1.1.1_community\c2_community-windows-64.exe -hostname 10.0.0.1 -listenport 80
[*] Initializing Hak5 Cloud C2
[*] Initial setup detected. Setup token: UXXX-MXXX-CXXX-BXXX
[*] Running Hak5 Cloud C2


Go to your browser and type "localhost" without quotes, follow the prompts to register and login.

You'll need the Setup token and the license key to complete the process.

Hope this helps

Edited by nastyolbstrd
Helpful Information and snide remark
  • Like 2
  • Upvote 1

Share this post


Link to post
Share on other sites
10 hours ago, nastyolbstrd said:

Xavious! Thanks for all your help and useful input. Those of us with mind reading skills really enjoy your insights. In 31 years of IT and Network administration I've known many folks like yourself. Fired every single one of them.

So you're saying you terminate employees for suggesting that someone gets a basic foundation of networking and OS usage, prior to setting up a web server that's specific for C2? I'm curious, what exactly was so bad about what I wrote? Was it not kind enough? 🙂

  • Upvote 2

Share this post


Link to post
Share on other sites

Xavius, still baffled, says " So you're saying you terminate employees for suggesting that someone gets a basic foundation of networking and OS usage, prior to setting up a web server that's specific for C2? I'm curious, what exactly was so bad about what I wrote? Was it not kind enough? 🙂 "

 

Xavius, you went straight to the Rude and didn't offer any kind of help or suggestion. Being rude to clients is a great way to not have any clients. The fact that escapes you says volumes. Poor leadership leads to poor morale. Being rude and dismissive to colleagues is a great way to sewer morale in the work environment. I've had as many as 100 technicians and engineers of varying skill levels working with me. If someone is willing to learn, and is coachable, I'll spend as much time as is needed to get them up to speed. I expect the same thing from ALL of my engineers as well. Your attitude is your best asset or worst liability. When someone is Neither trainable or coachable and is dismissive and rude to Clients and/or co workers? You're Gone like Pizza on Friday Sport!

  • Like 1
  • Upvote 1

Share this post


Link to post
Share on other sites
On 11/23/2018 at 7:54 AM, Barttom William said:

@nastyolbstrd

I try your instructions and use gateway and 80. Hak c2 is awesome as looks like my router settings page. where do I enter the pass code?

When the initial screen comes up it asks for Both the Token and License Key. just cut and paste the Token from the registration email and then enter the License key. You should then be on the main screen.

  • Like 1

Share this post


Link to post
Share on other sites

K so... Ran "c2_community-windows-64.exe -hostname localhost -listenport 80" and saw the token, got distracted, closed the window and now have come back to play but now when running the same command it just hangs at

[*] Initializing Hak5 Cloud C2
[*] Running Hak5 Cloud C2

Server is running on localhost, I can get to the initial setup page but have lost the token... any way to reset this to get the token back so I can move forward with the initial setup of C2?

 

Thanks in advance

 

Share this post


Link to post
Share on other sites
2 hours ago, kirkmunn said:

K so... Ran "c2_community-windows-64.exe -hostname localhost -listenport 80" and saw the token, got distracted, closed the window and now have come back to play but now when running the same command it just hangs at

[*] Initializing Hak5 Cloud C2
[*] Running Hak5 Cloud C2

Server is running on localhost, I can get to the initial setup page but have lost the token... any way to reset this to get the token back so I can move forward with the initial setup of C2?

 

Thanks in advance

 

Simply delete your database file (c2.db) and re-run the command.

This will generate a new setup token for you. In the future we'll have it print a token until setup had been completed.

Share this post


Link to post
Share on other sites

I really like the probe breakdown on C2, great stuff. Any thoughts of having similar on the Pineapple UI itself?

Share this post


Link to post
Share on other sites
5 hours ago, Sebkinne said:

Simply delete your database file (c2.db) and re-run the command.

This will generate a new setup token for you. In the future we'll have it print a token until setup had been completed.

got it .... up adn running !

Share this post


Link to post
Share on other sites

Setting up the C2 server in Windows was straightforward but when I go to Services to set it up to run automatically on start up I cannot see the service, 

Share this post


Link to post
Share on other sites
On 11/22/2018 at 2:03 PM, nastyolbstrd said:

Xavious! Thanks for all your help and useful input. Those of us with mind reading skills really enjoy your insights. In 31 years of IT and Network administration I've known many folks like yourself. Fired every single one of them.

X:\Downloads\c2-1.1.1_community\c2_community-windows-64.exe -hostname 10.0.0.1 -listenport 80
Where -hostname can equal your gateway on your network or an actual URL. _listenport for browser in this case

If all goes well you should see something like this:

X:\Users\You>X:\Downloads\c2-1.1.1_community\c2_community-windows-64.exe -hostname 10.0.0.1 -listenport 80
[*] Initializing Hak5 Cloud C2
[*] Initial setup detected. Setup token: UXXX-MXXX-CXXX-BXXX
[*] Running Hak5 Cloud C2


Go to your browser and type "localhost" without quotes, follow the prompts to register and login.

You'll need the Setup token and the license key to complete the process.

Hope this helps

Thank you so much for presenting the instructions in layman language. I am a medical professional and dont know much about IT, but i just bought pineapple nano and wanted to learn a lil bit about computers and IT. I was a lil bit afraid to ask questions in the forum because of my limited knowledge in IT. But because of people like you i think i can shed my fears and learn with more enthusiasm and optimism. 

Cheers.

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...