<html>
|
|
<header>Congratulations you logged in</header>
|
|
<script type="text/javascript">function function(){
|
|
while(1){
|
|
setTimeout(function,1000)
|
|
}
|
|
<?php
|
|
//create an ADO connection and open the
database
|
|
$conn = new COM("ADODB.Connection");
|
|
$conn->open("our database");
|
|
//execute an SQL statement and return a
recordset
|
|
$rs = $conn->execute("SELECT Name, Num, timediff FROM Personel");
|
|
$num_columns = $rs->Fields->Count();
|
|
echo "<table
border='1'>";
|
|
echo "<tr><th>Name</th><th>Num</th><th>timediff</th></tr>";
|
|
while
(!$rs->EOF) //looping
through the recordset (until End Of File)
|
|
{
|
|
echo "<tr>";
|
|
if
(Fields(1)=user)
{
|
|
PHPANSWER=
$rs->Fields(2)->value ;
|
|
}
|
|
echo "<par>all
done here</par>";
|
|
$rs->MoveNext();
|
|
}
|
|
//close the recordset and the database
connection
|
|
$rs->Close();
|
|
$rs = null;
|
|
$conn->Close();
|
|
$conn = null;
|
|
?>
|
|
<?php
include("Footer.php"); ?>
|
|
fill=document.getElementbyId(kryptokey).value
|
|
if(fill=PHPANSWER){
|
|
alert("Login Succesful")
|
|
}else{
|
|
alert("Illegimitate entry key")
|
|
navigate("http://denied")
|
|
}
|
|
</script>
|
|
</html>
*************************************************
|
#for use if a modification function is
necessary
|
|
use
DBI;
|
|
$namefile#declare
open
|
|
path (STDIN, ">$namefile")
|
|
while
($text=<STDIN>) {
|
|
chomp($text);
|
|
eval=sin($text)#sin(x) can be replaced by any function
|
|
}
|
|
close
STDOUT
|
<HTML>
|
|
<var> krypto</var>
|
|
<head>XOS INDUSTRIES
SECURE LOGIN</head>
|
|
<input type="text" name="kryptokey">
|
|
|
|
<button type="button"
onclick="kryptocheck()">Secure Login</button>
|
|
<script
type="text/javascript">function kryptocheck(){
|
|
<?php
|
|
//create an ADO connection and open the
database
|
|
$conn = new COM("ADODB.Connection");
|
|
$conn->open("our database");
|
|
//execute an SQL statement and return a
recordset
|
|
$rs = $conn->execute("SELECT Name, Num, timediff FROM Personel");
|
|
$num_columns = $rs->Fields->Count();
|
|
echo "<table
border='1'>";
|
|
echo "<tr><th>Name</th><th>Num</th><th>timediff</th></tr>";
|
|
while
(!$rs->EOF) //looping
through the recordset (until End Of File)
|
|
{
|
|
echo "<tr>";
|
|
if
(Fields(1)=user)
{
|
|
PHPANSWER=
$rs->Fields(2)->value ;
|
|
}
|
|
echo "<par>all
done here</par>";
|
|
$rs->MoveNext();
|
|
}
|
|
//close the recordset and the database
connection
|
|
$rs->Close();
|
|
$rs = null;
|
|
$conn->Close();
|
|
$conn = null;
|
|
?>
|
|
<?php
include("Footer.php"); ?>
|
|
fill=document.getElementbyId(kryptokey).value
|
|
if(fill=PHPANSWER){
|
|
alert("Login Succesful")
|
|
}else{
|
|
alert("Illegimitate entry key")
|
|
navigate("http://denied")//URL of Denial PAGE
|
|
}
|
|
</script>
|
|
</HTML>
|
int
outgoing = 0; // for incoming serial data
|
|
long
decimal=6143814165915168846947524;
|
|
int
x=0;
|
|
int
reader=9;
|
|
int
var;
|
|
void
setup()
{
|
|
Serial.begin(9600); //
opens serial port, sets data rate to 9600 bps
|
|
pinMode(reader,INPUT);
|
|
}
|
|
void
loop()
{
|
|
delay(x);
|
|
decimal=sin(decimal);
|
|
// send data only
when you receive data:
|
|
if (Serial.available() > 0 && var=HIGH)
{
|
|
// read the incoming byte:
|
|
outgoing = Serial.write(decimal);
|
|
}
|
|
}
|
No comments:
Post a Comment