31/07/2015 - 10:50 von Thomas Orgelmacher | Report spam
Hallo Manni!

Hier ist noch der Quelltext zu sendudp.exe:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Net.Sockets;

namespace ConsoleApplication1
class Program
static void Main(string[] args)
if (args.Length == 3)
String address = args[0], cmd = args[2];
Int32 port = Convert.ToInt32(args[1]);

Socket sock = new Socket(AddressFamily.InterNetwork,
SocketType.Dgram, ProtocolType.Udp);

IPAddress serverAddr = IPAddress.Parse(address);

IPEndPoint endPoint = new IPEndPoint(serverAddr, port);

byte[] send_buffer = Encoding.ASCII.GetBytes(cmd);

sock.SendTo(send_buffer, endPoint);



I have seen things you lusers would not believe. I've seen Sun
monitors on fire off the side of the multimedia lab. I've seen
NTU lights glitter in the dark near the Mail Gate. All these
things will be lost in time, like the root partition last week.

Lesen sie die antworten

#1 Jack Ryan
31/07/2015 - 22:27 | Warnen spam
Thomas Orgelmacher wrote:

Hallo Manni!

Hier ist noch der Quelltext zu sendudp.exe:

echo -n $cmd |netcat -q1 -u $address $port

Ähnliche fragen