-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathindex.php
99 lines (84 loc) · 3.81 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?php
if( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
include( 'gitgrep.php' );
}
if( !isset($_GET['s']) || ($s=trim($_GET['s'])) == '' ) {
$s = 'filename:wp-config.php';
} else {
$init_run = true;
}
if( !isset($_GET['r']) || ($r=trim($_GET['r'])) == '' ) {
$r = "DB_PASSWORD',\s*'[^']{4,}";
} else {
$init_run = true;
}
?>
<!DOCTYPE html>
<html>
<head>
<title>git | grep</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Gwendal Le Coguic">
<meta name="description" content="git|grep - regexp search over github search">
<meta name="keywords" content="development,security,researcher,bugbounty,tools,github,regexp,secrets">
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:image" content="http://gitgrep.me/img/preview.jpg"/>
<meta name="twitter:title" content="git|grep"/>
<meta name="twitter:description" content="git|grep - regexp search over github search"/>
<meta name="twitter:site" content="@gitgrep"/>
<meta name="twitter:creator" content="@gwendallecoguic"/>
<meta property="og:title" content="git|grep" />
<meta property="og:description" content="git|grep - regexp search over github search" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://gitgrep.me/" />
<meta property="og:image" content="http://gitgrep.me/img/preview.jpg" />
<meta property="og:site_name" content="gitgrep" />
<link rel="stylesheet" href="/css/bootstrap.min.css" />
<link rel="stylesheet" href="/css/gitgrep.css" />
</head>
<body>
<div id="site-infos" class="card">
<div class="card-body">
<p class="card-text">
git|grep is a single page website made with love, by hackers for hackers.
It helps to find secrets on GitHub using his API.
Unfortunately that means that we have to deal with the restrictions in place.
</p>
<p>
This webservice is my contribution to the security industry, if you like it, you can support my work.
</p>
<p class="text-center">
<a href="https://github.com/sponsors/gwen001" title="Sponsor gwen001"><img src="https://raw.githubusercontent.com/gwen001/pentest-tools/master/github-sponsor.jpg" alt="Sponsor gwen001" title="Sponsor gwen001"></a>
<p>
Found a bug? Feel free to open an issue on <a href="https://github.com/gwen001/gitgrep" target="_blank">the official repository</a>.
</p>
</div>
</div>
<div class="container">
<div class="row p-4"></div>
<div class="row justify-content-md-center">
<div class="col-9">
<div id="logo" class="text-center">
<h1>git <span class="text-danger">|</span> grep</h1>
</div>
</div>
</div>
<div class="row p-4"></div>
<div class="row justify-content-md-center">
<div class="col-9">
<?php include( 'gitgrep.html' ); ?>
</div>
</div>
</div>
<script src="/js/jquery-3.4.1.min.js" type="text/javascript"></script>
<script src="/js/gitgrep.js" type="text/javascript"></script>
<?php if( isset($init_run) ) { ?>
<script type="text/javascript">
$(document).ready(function(){
$('#search-form').submit();
});
</script>
<?php } ?>
</body>
</html>