Java code injection via WinAPI's CreateRemoteThread function.
Интересно, от этого есть какая-нибудь защита на уровне самого Java приложения?
Type username to filter posts in this community
public Iterator<Throwable> iterator() {
return new Iterator<Throwable>() {
SQLException firstException = SQLException.this;
SQLException nextException =
firstException.getNextException();
Throwable cause = firstException.getCause();
public boolean hasNext() {
if(firstException != null || nextException != null
|| cause != null)
return true;
return false;
}
public Throwable next() {
Throwable throwable = null;
if(firstException != null){
throwable = firstException;
firstException = null;
}
else if(cause != null){
throwable = cause;
cause = cause.getCause();
}
else if(nextException != null){
throwable = nextException;
cause = nextException.getCause();
nextException = nextException.getNextException();
}
else
throw new NoSuchElementException();
return throwable;
}
public void remove() {
throw new UnsupportedOperationException();
}
};
}( Суровая критикаCollapse )
Process p = null;
try
{
p = Runtime.getRuntime().exec("env");
java.util.Properties pr = new java.util.Properties();
pr.load(p.getInputStream());
System.out.println("Property : " + pr.getProperty(propName));
}
catch(Exception e)
{
e.printStackTrace();
}