Code Monkey home page Code Monkey logo

nimda3's People

Contributors

laxa avatar livinskull avatar noother avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nimda3's Issues

Error

No clue about coding. How to fix this? What am I doing wrong?

PHP Fatal error: Uncaught Error: Call to undefined function mb_internal_encoding() in /home/luca/Schreibtisch/nimda/Nimda3/core/defaults.php:3 Stack trace: #0 /home/luca/Schreibtisch/nimda/Nimda3/core/Nimda.php(3): require_once() #1 /home/luca/Schreibtisch/nimda/Nimda3/nimda(3): require_once('/home/luca/Schr...') #2 {main} thrown in /home/luca/Schreibtisch/nimda/Nimda3/core/defaults.php on line 3 luca@laptop-luca:~/Schreibtisch/nimda/Nimda3$

Thy

Usages of MySQLi but not prepared statements.

I dont know why you decided to change from mysql to mysqli, Maybe it was because of the php warnings, maybe it was because you read up in why MySQL functions are being removed.

the fact is mysql and methods used to sanitize are not safe, PDO and MySQLi are safe if you use prepared statements.
example

$sql = "
    INSERT INTO
        `memory` (`name`, `type`, `target`, `value`, `created`, `modified`)
    VALUES (
        '".addslashes($name)."',
        '".addslashes($type)."',
        '".addslashes($target)."',
        '".addslashes($sql_value)."',
        NOW(),
        NOW()
)";

can be better sanitized with

$sql = "
    INSERT INTO `memory` (`name`, `type`, `target`, `value`, `created`, `modified`)
    VALUES (?,?,?,?,NOW(),NOW())
";
$this->MySQL->bind_param($name, $type, $target, $sql_value);// the variables can be assigned anytime after or before the prepare untill executed
// More code?
$this->MySQL->execute();

I would help you out but you state development is exclusive by you, BTW Im building a Twitch bot usiong you bot since nimda2 is outdated as off php 5.6 :P

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.