Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I get him up and running? #1

Closed
Mofisto opened this issue Jul 14, 2021 · 4 comments
Closed

How do I get him up and running? #1

Mofisto opened this issue Jul 14, 2021 · 4 comments
Assignees

Comments

@Mofisto
Copy link

Mofisto commented Jul 14, 2021

I have done the following:

git clone https://github.com/CMatri/MeetC2.git
cd MeetC2 
go build .
./c2
panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
main.getIfaceIp(0x73bfc8, 0xb, 0x30, 0x28)
	/home/***/****/MeetC2/server.go:82 +0xe5
main.HttpListener.startListener(0x73bfc8, 0xb, 0x73bfb2, 0xb, 0x1f40, 0x4687e5, 0xc000000180)
	/home/***/****/MeetC2/httplistener.go:39 +0x95
main.main()
	/home/****/****/MeetC2/server.go:629 +0x10b
@iammaguire
Copy link
Owner

iammaguire commented Jul 14, 2021

The HttpListener is instantiated with the first two command line arguments - the first being the interface you would like to listen on and the second being the hostname. I'll add that to the doc! Oversight on my part.

If you want to listen on wlp2s0 with command.com being the hostname you would run
./c2 wlp2s0 command.com

I was surprised when I came back here and saw it had gained a following. Had it public mostly so my colleagues could peruse the code. Now that there's a growing interest I'll put an effort into revising the docs once I'm done with the certification I'm currently taking. Thank you for your interest

@Mofisto
Copy link
Author

Mofisto commented Jul 15, 2021

ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
 *****
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
 ****

hostname
kali

./c2 eth0 kali         
panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
main.getIfaceIp(0x73bfc8, 0xb, 0x30, 0x28)
	/home/***/MeetC2/server.go:82 +0xe5
main.HttpListener.startListener(0x73bfc8, 0xb, 0x73bfb2, 0xb, 0x1f40, 0x4687e5, 0xc000000180)
	/home/***/MeetC2/httplistener.go:39 +0x95
main.main()
	/home/***/MeetC2/server.go:629 +0x10b

I still encounter this error.
Maybe you should be outputting some error messages (¬‿¬)

@iammaguire
Copy link
Owner

iammaguire commented Jul 15, 2021

eth0 wouldn't have an IP associated with it, only a MAC address. Currently this project only supports wireless connections. Wired connections would be a good feature to add though, I've put it on the list. Try it out over a wireless interface.
Better debugging messages are added to the list as well. As I said I didn't expect the interest as it was only a hobby project until now.

@Mofisto
Copy link
Author

Mofisto commented Jul 16, 2021

Looking forward to the subsequent updates

@iammaguire iammaguire self-assigned this Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants