Git Product home page Git Product logo

Comments (9)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
Ok, this is a fun one. What is your unicode locale on your computer? Open a 
terminal and type:

echo $LANG

and paste the output here. I suspect that because your locale is something 
different, the chars I'm sending over the socket are being encoded in a weird 
way causing the software to freak out. 

If you want to test this hypothesis, do:

export LC_CTYPE=en_US.UTF-8
export LANG=en_US.UTF-8
java -Dfile.encoding=UTF-8 -jar armitage.jar

Let me know if it works with UTF-8. If it does, I'll either come up with a work 
around or document this situation in the FAQ. If it doesn't, back to square one.

Original comment by [email protected] on 7 Dec 2010 at 12:40

from armitage.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
My LC_CTYPE was set, but not the LANG.

Bad news, doesn't work with UTF-8 or en_US.UTF-8 for LANG and LC_CTYPE


chri@ceto:~/Tools/armitage/armitage-read-only
$ export LC_CTYPE=en_US.UTF-8
chri@ceto:~/Tools/armitage/armitage-read-only
$ export LANG=en_US.UTF-8
chri@ceto:~/Tools/armitage/armitage-read-only
$ java -Dfile.encoding=UTF-8 -classpath bin:lib/\*:. armitage.ArmitageMain $*
[Fatal Error] :1:1: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.

Could you point out where in the code you think it's failing? Maybe I can help 
look at that code and help a little with the debugging...

I'm a little bit confused you talk about a socket, because the error is caused 
by a  SAXParseException. Which is from my limited experience triggered by a 
malformed XML or DTD. Where is the socket playing a part in this? 

Original comment by [email protected] on 7 Dec 2010 at 7:05

from armitage.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
Armitage communicates with MSFRPCD over XMLRPC. I'm using scriptjunkie's code 
in src/msf/RpcConnection.java   This hides all of the non-stop XML excitement.

If you shoot an email to [email protected], I'll add some debug 
code to RpcConnection.java and send you an updated .jar to try. This will help 
us narrow down the problem more efficiently.

Original comment by [email protected] on 7 Dec 2010 at 1:15

from armitage.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
I did shoot an email on the 7th of December, but got no reply back...
Don't hesitate to send me that jar with debugcode.

Cheers

Original comment by [email protected] on 14 Dec 2010 at 7:08

from armitage.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
Yeap, thanks for getting that to me. I still owe you a debug jar, I've just 
been really busy lately. 

Original comment by [email protected] on 14 Dec 2010 at 9:57

from armitage.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
Ok, I've created a jar file with some debug code. It's at: 
http://armitage.googlecode.com/svn/trunk/release/armitage-unix/armitage.jar

Execute Armitage with java -jar armitage.jar -d. Do your normal stuff, it'll 
create a debug.log file in the current directory. Go ahead and email that to 
me. 

The debug.log file will contain some info about your system 
(System.getProperties().toString() in Java) and a log of the entire 
conversation between Armitage and MSFRPCD.

Original comment by [email protected] on 16 Dec 2010 at 11:46

from armitage.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
I am a little bit ashamed/annoyed,
the error was caused by a mistyped parameter in the msfrpcd command.
Sorry for the false-alarm

However, there are other issues now depending on the revision...
I'll first try to debug them a little more and will then create a new Issue. 

Original comment by [email protected] on 17 Dec 2010 at 9:07

from armitage.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
What parameter did you mistype? I'll keep this info on hand in case it comes up 
again. If someone else reports it, I'll toss it into the FAQ. No need to be 
annoyed or ashamed.

Original comment by [email protected] on 17 Dec 2010 at 1:55

  • Changed state: Invalid

from armitage.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
Well, I plan to submit a patch (this week-end) to make the login screen GUI 
more clear. To distinguish between the MSF parameters and mysql params more 
clearly.

Original comment by [email protected] on 17 Dec 2010 at 2:15

from armitage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.