All pastes #384331 Raw Edit

Untitled

public text v1 · immutable
·published 2007-03-07 00:18 UTC
rendered paste body
import java.io.*;
import java.util.*;
import java.io.IOException;


public class testing
{
public String hex2ascii(String hexstring)
                                {
                                        String newRequest="";
                                        // splitting attackrequest
                                        String [] tempRequest = null;
                                        tempRequest = hexstring.split(",");
                                        // hexcode to ascii
                                        for (int i = 0 ; i < tempRequest.length ; i++)
                                        {
                                                int zahl = Integer.parseInt(tempRequest[i], 16);
                                                char test = (char)zahl;
                                                newRequest = newRequest + test;
                                        }
                                        return newRequest;
                                }
	public static void main(String args[])
	{


		String hexcode = "50 ,4f      ,53    ,54     ,20,        2f,73  ,  65";
	
		
		
		String newString = hex2ascii(hexcode);
		
	}

}