Php ile yaptığım bir projedir. Girdiğiniz kelime ve sayılardan farklı kombinasyonlarda PassList oluşturur.
Örnek Olarak;
Adı: Kamil
İlgi Alanı: Fenerhabçe
İlgi Alanı Tarih: 1907
Bu üçünü birleştirip farklı kombinasyonlarda şifre üretmeye yarar bu sayede hedef siteye veya hedef kişiye özel şifre üretebilir brute force saldırılarınızı daha sonuç odaklı yapabilirsiniz.
PHP:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Gibi Şifre Oluşturucu</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<style type="text/css">@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700;900&display=swap');
*, body {
font-family: 'Poppins', sans-serif;
font-weight: 400;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
-moz-osx-font-smoothing: grayscale;
}
html, body {
height: 100%;
background-color: #152733;
overflow: hidden;
}
.form-holder {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
min-height: 100vh;
}
.form-holder .form-content {
position: relative;
text-align: center;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-justify-content: center;
justify-content: center;
-webkit-align-items: center;
align-items: center;
padding: 60px;
}
.form-content .form-items {
border: 3px solid #fff;
padding: 40px;
display: inline-block;
width: 100%;
min-width: 540px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
text-align: left;
-webkit-transition: all 0.4s ease;
transition: all 0.4s ease;
}
.form-content h3 {
color: #fff;
text-align: center;
font-size: 28px;
font-weight: 600;
margin-bottom: 5px;
}
.form-content h3.form-title {
margin-bottom: 30px;
}
.form-content p {
color: #fff;
text-align: center;
font-size: 17px;
font-weight: 300;
line-height: 20px;
margin-bottom: 30px;
}
.form-content label, .was-validated .form-check-input:invalid~.form-check-label, .was-validated .form-check-input:valid~.form-check-label{
color: #fff;
}
.form-content input[type=text], .form-content input[type=password], .form-content input[type=email], .form-content select {
width: 93%;
padding: 9px 20px;
text-align: left;
border: 0;
outline: 0;
border-radius: 6px;
background-color: #fff;
font-size: 15px;
font-weight: 300;
color: #8D8D8D;
-webkit-transition: all 0.3s ease;
transition: all 0.3s ease;
margin-top: 16px;
}
.btn-primary {
background-color: #0093f5;
outline: none;
border: 0px;
box-shadow: none;
width: 100%;
padding: 10px;
border-radius: 5px;
color: #fff;
font-weight: bold;
font-size: 16px;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active{
background-color: #495056;
outline: none !important;
border: none !important;
box-shadow: none;
}
.form-content textarea {
position: static !important;
width: 100%;
padding: 8px 20px;
border-radius: 6px;
text-align: left;
background-color: #fff;
border: 0;
font-size: 15px;
font-weight: 300;
color: #8D8D8D;
outline: none;
resize: none;
height: 120px;
-webkit-transition: none;
transition: none;
margin-bottom: 14px;
}
.form-content textarea:hover, .form-content textarea:focus {
border: 0;
background-color: #ebeff8;
color: #8D8D8D;
}
.mv-up{
margin-top: -9px !important;
margin-bottom: 8px !important;
}
.invalid-feedback{
color: #ff606e;
}
.valid-feedback{
color: #2acc80;
}</style>
</head>
<body>
<div class="form-body">
<div class="row">
<div class="form-holder">
<div class="form-content">
<div class="form-items">
<h3>Gibi PassList</h3>
<p>TurkHackTeam.org</p>
<form class="requires-validation" novalidate action="" method="POST">
<div class="col-md-12">
<input class="form-control" type="text" name="word1" placeholder="Birinci Kelime" required>
</div>
<div class="col-md-12">
<input class="form-control" type="text" name="word2" placeholder="İkinci Kelime" required>
</div>
<div class="col-md-12">
<input class="form-control" type="text" name="num" placeholder="Sayı" required>
</div>
<?php
if($_POST){
$word1 = $_POST['word1'];
$word2 = $_POST['word2'];
$num = $_POST['num'];
if(empty($word1)|| empty($word2)|| empty($num)){
echo '<br><div class="invalid-feedback">Boş Alan Bırakmayınız.</div>';
}
else{
$file = fopen("p.txt", "w"); // Dosyayı açarız (yoksa oluşturulur)
$combinations = array(
$word1 . $word2 . $num, // Kelime 1 + kelime 2 + sayı
$word2 . $word1 . $num, // Kelime 2 + kelime 1 + sayı
$num . $word1 . $word2, // Sayı + kelime 1 + kelime 2
$num . $word2 . $word1, // Sayı + kelime 2 + kelime 1
ucfirst($word1) . ucfirst($word2) . ucfirst($num), // Baş harfler büyük
ucfirst($word2) . ucfirst($word1) . ucfirst($num),
ucfirst($num) . ucfirst($word1) . ucfirst($word2),
ucfirst($num) . ucfirst($word2) . ucfirst($word1),
strtolower($word1) . strtolower($word2) . strtolower($num), // Tüm harfler küçük
strtolower($word2) . strtolower($word1) . strtolower($num),
strtolower($num) . strtolower($word1) . strtolower($word2),
strtolower($num) . strtolower($word2) . strtolower($word1)
);
foreach ($combinations as $combination) { // Her bir kombinasyon için döngü
fwrite($file, $combination . "\n"); // Dosyaya yazdır
}
fclose($file); // Dosyayı kapatırız
echo '<br><div class="valid-feedback">Başarıyla Oluşturuldu</div>';
}
}
?>
<br>
<div class="form-button mt-3">
<button id="submit" type="submit" class="btn btn-primary">Oluştur</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</body>
</html>