iagox86 / dnscat2

BSD 3-Clause "New" or "Revised" License
3.43k stars 601 forks source link

./dnscat2.rb: line 215: syntax error near unexpected token `(' #105

Open sdcampbell opened 7 years ago

sdcampbell commented 7 years ago

./dnscat2.rb: line 215: syntax error near unexpected token (' ./dnscat2.rb: line 215:$LOAD_PATH << File.dirname(FILE) # A hack to make this work on 1.8/1.9'

I've tried running the server on Ubuntu 14.04 on Digital Ocean and also tried it on an up to date version of Kali and get the same error on both.

iagox86 commented 7 years ago

Weird.. which version of Ruby?

On Sun, Jan 29, 2017 at 2:30 PM, Steve Campbell notifications@github.com wrote:

./dnscat2.rb: line 215: syntax error near unexpected token (' ./dnscat2.rb: line 215:$LOAD_PATH << File.dirname(FILE) # A hack to make this work on 1.8/1.9'

I've tried running the server on Ubuntu 14.04 on Digital Ocean and also tried it on an up to date version of Kali and get the same error on both.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/iagox86/dnscat2/issues/105, or mute the thread https://github.com/notifications/unsubscribe-auth/AAgITK2ACFkkgoNikDLANrbc5OrvwHSRks5rXRLygaJpZM4Lw7qp .

sdcampbell commented 7 years ago

I did have 2.x on the server. I don't know exactly which version because it now has 1.9 after I followed your instructions for how to get it working as root. Still same error with 1.9. On Kali linux I got the same error with Ruby version 2.3.

iagox86 commented 7 years ago

I'm pretty sure I tested on 1.9, but it should work on later versions. I can probably get rid of that line anyways, there's not much use in supporting 1.9 and earlier anymore, I think everybody's mostly off those.

On Tue, Jan 31, 2017 at 10:17 AM, Steve Campbell notifications@github.com wrote:

I did have 2.x on the server. I don't know exactly which version because it now has 1.9 after I followed your instructions for how to get it working as root. Still same error with 1.9. On Kali linux I got the same error with Ruby version 2.3.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/iagox86/dnscat2/issues/105#issuecomment-276445728, or mute the thread https://github.com/notifications/unsubscribe-auth/AAgITA5uZzpdROACY53PS6nCEYcsqwBTks5rX3qngaJpZM4Lw7qp .