Location: PHPKode > projects > YASeMI > yasemi_0.1/gs/page.php
<?php

function showmain($pics, $scripts, $css, $reports, $root) {

$main = '
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" type="text/css" href="'.$css.'styles.css">
<link rel="stylesheet" type="text/css" href="'.$css.'xc.css">
<script language="javascript" type="text/javascript" src="'.$scripts.'datetimepicker.js">
//Date Time Picker script- by TengYong Ng of http://www.rainforestnet.com
//Script featured on JavaScript Kit (http://www.javascriptkit.com)
//For this script, visit http://www.javascriptkit.com
</script>
<script language="javascript" type="text/javascript" src="'.$scripts.'xc.js">
</script>
<script language="javascript" type="text/javascript" src="'.$scripts.'form_control.js">
</script>
<script language="javascript" type="text/javascript" src="'.$scripts.'many_actions.js">
</script>
</head>

<body onload="xcSet(\'x\', \'xc\', \'js\');">
<a href="'.$root.'main.php"><img src="'.$pics.'yasemi_logo.jpg" border="0" style="position:absolute;top: 0px; left: 0px;"></a>

<div style="position:absolute;top: 10px; left: 280px;width: 700px; height:125px;background:#FFFFFF;">
	<div class="bl" style="background-color: #BFC3FF;width: 700px;">
		<div class="br">
			<div class="tl">
				<div class="tr">
					<span style="font-size:10px;">
					Project: YASeMI <br>
					V 0.1<br><br>
					</span>
					<a href="'.$root.'main.php">Home</a> | <a href="'.$root.'settings.php">Settings</a><br>
				</div>
			</div>
		</div>
	</div>
</div>

<!-- Main Menu -->
<div style="position:absolute;top: 130px; left: 10px;width: 250px; height:400px;background:#FFFFFF;">
	<div class="bl" style="background-color: #BFC3FF;width: 250px;">
		<div class="br">
			<div class="tl">
				<div class="tr">
					
				<form name="reportform" method="post">
					<strong><span style="color:blue;font-size:16px;">Step 1: Select Time Span</strong></span><br><br>
					<strong>Start Time:</strong><br>
					<input name="intrv1" id="chkintrv1" type="text" value="'.$_POST["intrv1"].'" size="16">
					<a href="javascript:NewCal(\'chkintrv1\',\'ddmmyyyy\',true,24)">
					<img src="'.$pics.'cal.gif" width="16" height="16" border="0" alt="Pick a date"></a><br>
					<strong>End Time:</strong><br>
					<input name="intrv2" id="chkintrv2" type="text" value="'.$_POST["intrv2"].'" size="16">
					<a href="javascript:NewCal(\'chkintrv2\',\'ddmmyyyy\',true,24)">
					<img src="'.$pics.'cal.gif" width="16" height="16" border="0" alt="Pick a date"></a>
					<p align="center"><strong><span style="color:blue;font-size:16px;">or</span></strong></p>
					<strong>report for the last</strong> 
					<select name="lasthours">
						<option value="" selected>x</option>
						<option value="1">1</option>
						<option value="2">2</option>
						<option value="3">3</option>
						<option value="4">4</option>
						<option value="5">5</option>
					</select> <strong>hours (auto refresh every 10 mins)</strong>
					<br><br><span style="color:blue;font-size:16px;"><strong>Step 2: Select Report</strong></span><br>
					<ul id="x">
						<li><strong>Threshold Reports</strong>
							<ul id="xa">
							
							<input type="radio" name="report"><a href="#" class="info">only Syn<span>Suspect Sessions where only the SYN flag is set (DoS attack); such a communication between two hosts is considered suspicious only if it exceeds the threshold that is computed on a daily/hourly basis since such a session could as well be innocent traffic (e.g. a host trying to communicate with another host that is not there anymore or that is not offering the service the first host is looking for)</span></a><br>
							<input type="radio" name="report"><a href="#" class="info">no Fin<span>Suspect Sessions where the FIN flag is missing (DoS attack); such a communication between two hosts is considered suspicious only if it exceeds the threshold that is computed on a daily/hourly basis since such a session could as well be innocent traffic (e.g. a host trying to communicate with another host that is not there anymore)</span></a><br>
							<input type="radio" name="report"><a href="#" class="info">Top N Sessions<span>Top N sessions based on the number of sessions opened between two hosts; percentage N is set by user at the "settings" page</span></a><br>
							<input type="radio" name="report"><a href="#" class="info">Top N Data<span>Top N sessions based on the amount of bytes exchanged between two hosts; percentage N is set by user at the "settings" page</span></a><br>
							<input type="radio" name="report"><a href="#" class="info">Vertical Port Scan<span>Port scanning sessions, based on the frequency of port visiting (threshold is set by user at the "settings" page)</span></a><br>
							<input type="radio" name="report"><a href="#" class="info">Horizontal Port Scan<span>IP scanning sessions, based on the frequency of IP visiting (threshold is set by user at the "settings" page)</span></a><br>

							
							</ul>
						</li>
						
				
						<li><strong>Non-Threshold Reports</strong>
							<ul id="xd">

							<input type="radio" name="report"><a href="#" class="info">only Syn/Rst<span>Sessions where only the SYN+RST flags are set (port scan)</span></a><br>
							<input type="radio" name="report"><a href="#" class="info">Syn/Fin - no Ack<span>Sessions where only SYN+FIN flags are set but the ACK flag is not set (port scan or DoS)</span></a><br>
							<input type="radio" name="report"><a href="#" class="info">only Fin<span>Sessions where only the FIN flag is set (port scan)</span></a><br>
							<input type="radio" name="report"><a href="#" class="info">only Syn - Identical Src&&Dst IP&&Port<span>Sessions where only the SYN flag is set and the source and destination addresses and ports are the same (port scan)</span></a><br>
							<input type="radio" name="report"><a href="#" class="info">all Set<span>Sessions where all flags are set (stealth port scan, e.g. Xmas scan)</span></a><br>
							<input type="radio" name="report"><a href="#" class="info">all Null<span>Sessions where all flags are not set (stealth port scan)</span></a><br>
							<input type="radio" name="report"><a href="#" class="info">Identical Src&&Dst<span>Sessions where the source and destination addresses are the same</span></a><br>
							<input type="radio" name="report"><a href="#" class="info">Localhost Src||Dst<span>Sessions containing the localhost reserved address as source and destination</span></a><br>
								
							</ul>
						</li>

						<li><strong>Graph Reports</strong>
							<ul id="xp">
								
							<input type="radio" name="report"><a href="#" class="info">Sessions per Router Interface<span>Produce a graph of all sessions seen by routers during the time period defined by the user; sessions are split by router interface</span></a><br>
							<input type="radio" name="report"><a href="#" class="info">Bytes per Router Interface<span>Produce a graph of traffic (bytes) going through all routers during the time period defined by the user</span></a><br>
							<input type="radio" name="report"><a href="#" class="info">Sessions by Flags<span>Produce a graph of all sessions seen by routers during the time period defined by the user and containing these flags</span></a><br>
								  		
									<input name="urg" type="checkbox" value="urg">URG
									<input name="ack" type="checkbox" value="ack">ACK
									<input name="psh" type="checkbox" value="psh">PSH<br>
									<input name="rst" type="checkbox" value="rst">RST
									<input name="syn" type="checkbox" value="syn">SYN
									<input name="fin" type="checkbox" value="fin">FIN
									
							</ul>
						</li>
						
				</ul>
				
				<strong><span style="color:blue;font-size:16px;">Step 3: Generate Report</strong></span><br>
				<p>
				<input style="width:115px;" type="submit" value="Generate Report" onClick="return WhichAction(\''.$reports.'\');">
				<input style="width:108px;" type="submit" value="...in new window" onClick="this.form.target = \'_blank\';return WhichAction(\''.$reports.'\');">
				</p>
				
			</form>

				<br><br><a href="'.$root.'settings.php"><strong>Settings</strong></a>


				</div>
			</div>
		</div>
	</div>
</div>

';

echo $main;

}

function showbottom() {

$bottom = '
	
<div align="center" class="bottomdiv">
	<span style="font-size:10px;">
	YASeMI v0.1<br>Project Admin: Iliadis John<br>Project Implementation: Kantas Evaggelos - Kouroubakalis John<br>
	YASeMI was designed for Mozilla Firefox
	</span>
</div>	
	
';

echo $bottom;

}

?>
Return current item: YASeMI