Monday, December 27, 2010

Calculator (C++)

#include "stdafx.h" #include <iostream> using namespace std; void plus(); void minus();  void mult();     //Here are the declerations of the functions. void dev(); void exit(); int main() {     int sth=0;         while(1) //The while loop,will execute again and again the stuff below(but only code which is in it's scopes!)     {       cout << "Press 1 for Addition" << endl;       cout << "Press 2 for Subtraction" << endl ;    //Here are the senteces about calculations..       cout << "Press 3 for Multiplication" << endl;       cout...


Check open port (php)

 Hmm simply save it *.phpIt will check n display opened ports <html><head><title>Check Open Ports</title></head> <body> <center> <br><br> <h1>You IP is:<br><font color='blue'><?php echo $_SERVER['REMOTE_ADDR'];?></font></h1> <br> <form action="" method="post"> <h2>Enter ip adress to check: <h2><br><input type="text" name="ip" value="<?php echo $_SERVER['REMOTE_ADDR'];?>" size="30"/><br><br> <h2>Enter port to check: <h2><br><input type="text" name="port" size="20"/><br><br> <input type="submit" value="check"/> </form>  </center> <?php $ip=$_POST["ip"]; $port = $_POST["port"]; if ($ip...


Sunday, December 26, 2010

How to close open port

So i've been looking for a while on just how to close a port on a computer. I simply couldn't find a way. Well, i finally found it. This'll only work for windows users (unless your unix version OS has netsh). it's actually quite simple. here's the command for it: netsh firewall delete portopening TCP portnumber it's that simple. Simply go to START -> RUN -> and type in that command up there, and it'll close it for you. or, you can also open up command prompt (START -> RUN -> CMD) and type in "netsh" without the quotes to get to your windows firewall settings. however, since i'm such a nice guy, i wrote it all out in a vbs script for you so that it's automatically runable. as well as a batch script. so here you are fellas: .VBS Script set ss = createobject("wscript.shell") set...


Pages 81234 »