Jump to content

Search the Community

Showing results for tags 'secure'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 5 results

  1. Ziek`

    avDariR.jpg

    1. Cart

      Cart

      WeirdChamp

    2. Ziek`

      Ziek`

      This is a 100% real screenshot from MSN days

    3. Ziek`

      Ziek`

      I also have

       kDaDoS0.png

  2. Got bored and wrote a very secure callback for RuneLocus. Probably a little too secure, but hey, cant ever be secure enough nowadays... If your host supports remote sql, you will need to allow the remote connection via cPanel using the Remote SQL option. You just input your VPS ip. If it does not support remote SQL, such as a free webhost, then gf. First things first, make sure you have a database with a username and password set. If you already have one you want to use, then good deal. Move on to next step: Create a new PHP file and put this in it: <?php define("db_host", "localhost"); // typically localhost unless your database is off-site define("db_user", ""); // database username define("db_pass", ""); // database password define("db_name", ""); // name of the database define("db_tabl", ""); // the name of the table define("runelocus_ip", "69.65.40.220"); // IP to runelocus, to prevent injections // here we check if the variable "usr" is set in the url like so: ?usr=someName if (!isset($_GET['usr']) || empty($_GET['usr']) || !is_string($_GET['usr']) && !is_numeric($_GET['usr'])) { echo 'NOPE'; exit; } // then we check the ip address of who is visiting the page. If its not runelocus, NOPE if (!isset($_SERVER['REMOTE_ADDR']) || empty($_SERVER['REMOTE_ADDR']) || $_SERVER['REMOTE_ADDR'] != runelocus_ip) { echo 'NOPE'; exit; } // we then filter the name to prevent non alphanumerical characters $name = cleanString($_GET['usr']); // after that, we make a conection to the database $con = new mysqli(db_host, db_user, db_pass, db_name) or die ($con->$error); // we now query the database to see if the user has any votes $res1 = $con->query("SELECT * FROM ".db_tabl." WHERE username='".$name."'"); // if they do, we check scan thru all the user's votes and see if the last votes was less then 12 hours ago. // if so, the vote is denied. if ($res1) { while ($data = $res1->fetch_assoc()) { $time = $data['timeVoted']; if (time() - $time < 43200) { echo ''.(43200 - (time() - $time)).' seconds remaining until next vote allowed'; exit; } } } // We fetch the IP on the user and store it in a variable $ipAddr = $_SERVER['REMOTE_ADDR']; // then insert the username, claim status (0 to denote it as not being claimed) $res = $con->query("INSERT INTO ".db_tabl." (username, claimed, timeVoted, ipAddr) VALUES ('".$name."', '0', '".time()."', '".$ipAddr."')"); // if connected and inserted, we print Success... if ($con && $res) { echo 'Successfully inserted vote entry for '.$name.''; } else { echo 'Failed inserting vote entry for '.$name.''; } ?>[/CODE] I've provided a few notes in there to show each thing as it's process and what it does. Upload the script to your website's root folder (some hosts use htdocs, wwwroot, or inetpub, depending on the web-server they use) Now that we have a callback, goto RuneLocus and edit the callback url for your server to match your website url and the path you uploaded it to. New votes should be inserted in the database, if not you didnt insert something correctly or you're possibly using wrong version of PHP. This script was written using Php 5.3. SERVER SIDE WOOOOOT First, make a new class called "Database.java" and put it in any desired package. Just remember it cause we'll need it later, and make put this in it: [code] package com.rs.game.mysql; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class Database { private Connection conn; private Statement stmt; private String host = ""; private String user = ""; private String pass = ""; private String database = ""; public Database(String host, String user, String pass, String data) { this.host = host; this.user = user; this.pass = pass; this.database = data; } public boolean init() { try { this.conn = DriverManager.getConnection("jdbc:mysql://"+host+":3306/"+database, user, pass); return true; } catch (SQLException e) { e.printStackTrace(); return false; } } public int executeUpdate(String query) { try { this.stmt = this.conn.createStatement(1005, 1008); int results = stmt.executeUpdate(query); return results; } catch (SQLException ex) { ex.printStackTrace(); } return -1; } public ResultSet executeQuery(String query) { try { this.stmt = this.conn.createStatement(1005, 1008); ResultSet results = stmt.executeQuery(query); return results; } catch (SQLException ex) { ex.printStackTrace(); } return null; } public void destroyAll() { try { conn.close(); stmt.close(); conn = null; stmt = null; } catch(Exception e) { e.printStackTrace(); } } } Next, make a new class called "Vote.java" and put this in it: package com.rs.game.mysql.impl; import java.sql.ResultSet; import com.rs.game.mysql.Database; import com.rs.game.player.Player; import com.rs.utils.Utils; public class Vote implements Runnable { private static final String databaseTable = "voters"; // change this to your database table private Player player; public Vote(Player player) { this.player = player; } [MENTION=15855]Over[/MENTION]ride public void run() { try { // edit this Database db = new Database("localhost", "db_user", "db_pass", "db_name"); if (!db.init()) { System.err.println("[MySQL] Failed connecting to database."); return; } String username = Utils.formatPlayerNameForDisplay(player.getUsername()); // only pulling one result at a time where they have not claimed. ResultSet rs = db.executeQuery("SELECT * FROM "+databaseTable+" WHERE username='"+username+"' AND claimed=0 LIMIT 1"); if (rs.next()) { int rowId = rs.getInt("id"); int timeVoted = rs.getInt("timeVoted"); int epochTime = (int) (Utils.currentTimeMillis() / 1000); if (epochTime - timeVoted < 43200) { // if the vote was less than 12 hours ago, give reward. if not, make em do it again :I // your rewards go here. // updates the current row to show it's been claimed int results = db.executeUpdate("UPDATE "+databaseTable+" SET claimed=1 WHERE id="+rowId+""); System.out.println("[MySQL] Updated "+results+" database rows"); db.destroyAll(); // destroy connections return; } } db.destroyAll(); // destroy connections } catch (Exception e) { e.printStackTrace(); } } } so now if you've done this correctly, you should have a fairly decent auto vote system and stuff, hopefully. Hopefully i also didnt mess up cause i havent tested server-side, but i have indeed tested website and it works fine :P How to use: new Thread(new Vote(player)).start(); I've made this work on a seperate thread so it doesnt interfere with the main thread of the game. Database structure: CREATE TABLE IF NOT EXISTS `voters` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(255) NOT NULL, `claimed` tinyint(1) NOT NULL, `timeVoted` bigint(15) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;[/CODE] To add a runelocus vote form your your website, it's super easy. Just simply add this to your template wherever you wish: [CODE]<form action="http://www.runelocus.com/toplist/index.php" method="GET"> <input type="hidden" name="action" value="vote"> <input type="hidden" name="id" value="38552"> <!--YOUR RUNELOCUS VOTE ID, THIS CAN BE FOUND IN THE VOTING URL --> <input type="text" name="id2" placeholder="Server username" required> <button type="submit">Vote Now</button> </form>[/CODE] And there you have it, pretty sure I've included EVERYTHING for this..but if not just post a reply :P
  3. [CENTER][img]http://puu.sh/7lzYx.png[/img][/CENTER] As some of you may know, A (fairly) recent Java update has made it extremely awkward for users to play RuneScape Private Server Webclients with self-signed certificates. To allow users to play, you will need to pay sometimes between $150 to $200, be a registered company AND provide your actual information in order to get an overpriced certificate. At the moment, this may be fixed by simply changing the security level to medium. Whilst this works, Java 8 will remove the capability to run self-signed code fully. But fear not! Patrick Star has the solution! DogeSign is a centralized certificate authority, signing certificates for free in order to ensure continuity of webclients for the foreseeable future! Below is an informative paragraph about how to import CA's to your Java installation. [SPOILER=much informative] 1) Download the certificate for the CA. DogeSign's CRT can be found here: [url]http://puu.sh/7lAeI.crt[/url] 2) For Windows users, Open control panel and search for Java [img]http://puu.sh/7lAln.png[/img] [img]http://puu.sh/7lAns.png[/img] Open the appropriate Java configuration. 3) Go to the security tab [img]http://puu.sh/7lAr1.png[/img] 4) Click Manage Certificates, and select Signer CA in the dropdown. [img]http://puu.sh/7lAw3.png[/img] 5) Click Import, change file type to All Files and select the certificate. Press Open. [img]http://puu.sh/7lACH.png[/img] 6) Select "Secure Site CA" in the dropdown box, and repeat step 5. [img]http://puu.sh/7lAGN.png[/img] 7) Press Close, Apply, OK. You've now added a certificate authority! [/SPOILER] If you're the owner of a private server, and would like to get a signed certificate for your web browser, Follow the instructions below. [SPOILER=so success] Create a certificate and private key pair. This can be done using any tool of your choice or the below command line: [code] keytool -genkey -dname "CN=SuperFunScape, OU=Uniqueness, O=Old School Remake Super Fun Unique Best Server, ST=Many Server, C=RS" -validity 365 -alias ServerName -keypass XXZZXX -keystore ServerName.ks -storepass XXYYXX [/code] Create a certificate sign request for the generated certificate / keypair [code] keytool -certreq -alias ServerName -file ServerName_csr.pem -keypass XXZZXX -keystore ServerName.ks -storepass XXYYXX [/code] And PM me the ServerName_csr.pem file. When I get around to it, I will sign this and respond with a signed one. You can then use this just like any other self-signed certificate. [/SPOILER] [B]What's the point of this? Why not just get users to add a certificate per server?[/B] Because that wastes the users time. An application could easily be made to automate this process, but it's still more effort than adding one certificate one time. [I][U]If this is in the wrong section, Please move it somewhere more appropriate[/U][/I]
  4. I know many good names like [URL="http://www.bestvpnservice.com/providers/21/hide_my_ass!.html"]hidemyass [/URL]and [URL="http://www.bestvpnservice.com/providers/22/strong_vpn.html"]strongvpn [/URL], but all they keep spying on users...........
  5. Do you need academic qualifications to succeed in life? Is academic qualifications key to success in life? Is academic qualifications a requirement to be successful? Debate.
×