Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Created by lain on 11/26/2015.
- */
- import java.util.Scanner;
- import org.jsoup.*;
- import org.jsoup.nodes.Document;
- import org.jsoup.select.Elements;
- public class VulnerablePageFinder {
- public static void main(String[] args) throws Exception {
- Scanner scan = new Scanner(System.in);
- System.out.println("Input the URL to scan");
- String url = scan.nextLine();
- Document page = Jsoup.connect(url).get();
- Elements links = page.select("a");
- for(int i=0; i<links.size(); i++) {
- System.out.println(links.get(i).attr("href"));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement