Skip to content

Commit aa9a317

Browse files
authored
Update parse.php
1 parent b9c0a65 commit aa9a317

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

parse.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
#!/usr/bin/php
2+
13
<?php
4+
$url = "https://www.domain.com/login/admin.php?login&username=admin&password=admin&submit=login";
5+
26
function get_domain($url) {
37
$str = '/^(?:https?.\/\/)?(?:[^@\/\n]+@)?(?:)?([^:\/?\n]+).*/m';
48
preg_match_all($str, $url, $matches, PREG_SET_ORDER, 0);

0 commit comments

Comments
 (0)