Advertisement
Guest User

Untitled

a guest
Nov 26th, 2015
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. /**
  2. * Created by lain on 11/26/2015.
  3. */
  4.  
  5. import java.util.Scanner;
  6. import org.jsoup.*;
  7. import org.jsoup.nodes.Document;
  8. import org.jsoup.select.Elements;
  9.  
  10. public class VulnerablePageFinder {
  11. public static void main(String[] args) throws Exception {
  12. Scanner scan = new Scanner(System.in);
  13.  
  14. System.out.println("Input the URL to scan");
  15. String url = scan.nextLine();
  16.  
  17. Document page = Jsoup.connect(url).get();
  18. Elements links = page.select("a");
  19.  
  20. for(int i=0; i<links.size(); i++) {
  21. System.out.println(links.get(i).attr("href"));
  22. }
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement