Sep
17
2009
Hello
Tooday Jorge send me an e-mail asking how to send files using XML-RPC. So I did some modifications in Client and Server, Java XML-RPC to do this.
I implemented this and it wasn’t so hard. I read the documentation of Apache XML-RPC to see how to send bytes. They are send using an array of bytes (byte[]) in a Base64 codification.
To create the Base64 codification I used Java Base64 in public domain.
How to get an array of bytes from a file
How to create a file from a array of bytes
XML-RPC-Transfer-file
Matheus
PS: This is just an example, any file that client ask, the server will send. It WILL BE A SYSTEM VULNERABILITY!
May
26
2009
Hello,
The last days I keep trying to configure my server. I know how to configure the network to this:
MODEM -> (eth0) Servidor (eth1) -> (LAN Port) Router (LAN Ports) -> Computers
This topology don`t work for me, because in this way I lost one WAN Port. So I thought in this topology:
MODEM -> (eth0) Servidor (eth1) -> (Porta WAN) Router (Portas LAN) -> Computadores
First of all configure your eth1 manyally as (edit /etc/network/interfaces):
auto eth1
iface eth1 inet static
address 192.168.100.254
netmask 255.255.255.0
network 192.168.100.0
broadcast 192.168.100.255
After this I add this iptables rules:
sysctl net.ipv4.ip_forward=1
iptables -t nat -A POSTROUTING –out-interface eth0 -j MASQUERADE
iptables -A FORWARD –in-interface eth0 -j ACCEPT
I need to setup the router manually:
IP Address : 192.168.100.1
Subnet Mask : 255.255.255.0
ISP Gateway Address : 192.168.100.254
Primary DNS Address : 200.247.141.11 (DNS)
Secondary DNS Address : 200.247.141.12 (DNS)
So up and running
Matheus
May
16
2009
Good night,
A few days ago I created a XML-RPC server to test some functions. What is XML-RPC? XML-RPC is a remote procedure call (RPC) protocol which uses XML to encode its calls and HTTP as a transport mechanism.(wikipedia) To start using XML-RPC in Java I used apache xml-rpc.
Example client and server XML-RPC.
Best Regards,
Matheus