F
F
Fairlancer2016-05-02 22:48:05
Java
Fairlancer, 2016-05-02 22:48:05

How to modify HTTP traffic on the fly?

Good day, colleagues. Recently, I was given a seemingly easy task. Given: JAR-application without source codes, which crashes on startup with an error due to the fact that the author abandoned the project. Task: Change one file "on the fly" that the software requests from the network, and thus revive it. Solution: We take Fiddler,Charles and feed her with the missing file from my site, while she goes to the address: avtorpage.com/dl/update.lst and the file is given from the address: mypage.com/dl/update.lst but the whole problem is the fact that she communicates through a Socket http connection, because of this, the two above-mentioned tools do not see her. Question: What to do? (Decompile is not an option, covered by Zelda and do not want to violate the rights of the developer).

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Savostin, 2016-05-02
@savostin

Write in hosts your ip for autorpage.com

K
Konstantin Malyarov, 2016-05-02
@Konstantin18ko

Write your own crutch or unpack the JAR and see how the request goes through and with what parameters.

V
VZVZ, 2016-05-02
@VZVZ

> but the whole problem is that she communicates via Socket http connection, because of this, the two above-mentioned tools do not see her
WTF?
Actually, these are HTTP sniffers
. And any HTTP requests are also TCP packets, i.e. match your expression "Socket http connection".
All they need to see.
But, perhaps, requests go without a proxy (and not through the system one), and therefore bypass Fiddler. You need to try tools like Proxifier, or else how to force a proxy for java ... You
can also try Wireshark, but I'm not sure until I tried it for such cases.
> the author abandoned the project
> I don't want to violate the rights of the
facepalm developer
> covered by Zelda
Huh what is this. Obfuscator? Or did you misspell and really wanted to write another consonant word, well, this subject also often covers everything?
In general, for Java, there are far from one decompiler and disassembler ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question