Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update #5

Merged
merged 20 commits into from
Jul 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Cookie.ico
Binary file not shown.
Binary file removed NoMoreCookies.jpg
Binary file not shown.
14 changes: 10 additions & 4 deletions NoMoreCookies/NoMoreCookies/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ bool IsBrowser(char* FileName)
{
return true;
}

if (hasEnding(FileName, "vivaldi.exe") && Signed)
{
return true;
}
if (hasEnding(FileName, "chrome.exe") && Signed)
{
return true;
Expand Down Expand Up @@ -248,7 +251,7 @@ std::wstring FirefoxPath;
std::wstring YandexPath;
std::wstring OperaPath;
std::wstring WaterfoxPath;

std::wstring VivaldiPath;
BOOL Startup()
{
wchar_t Username[50];
Expand All @@ -272,6 +275,8 @@ BOOL Startup()
OperaPath.append(L"AppData\\Roaming\\Opera Software\\Opera Stable");
WaterfoxPath = UserPath.c_str();
WaterfoxPath.append(L"AppData\\Roaming\\Waterfox\\Profiles");
VivaldiPath = UserPath.c_str();
VivaldiPath.append(L"AppData\\Local\\Vivaldi\\User Data");
return true;
}
else
Expand All @@ -289,7 +294,8 @@ BOOL IsBlacklistedPath(LPCWSTR FilePath)
WFilePath.rfind(FirefoxPath.c_str(), 0) == 0 ||
WFilePath.rfind(YandexPath.c_str(), 0) == 0 ||
WFilePath.rfind(OperaPath.c_str(), 0) == 0 ||
WFilePath.rfind(WaterfoxPath.c_str(), 0) == 0)
WFilePath.rfind(WaterfoxPath.c_str(), 0) == 0 ||
WFilePath.rfind(VivaldiPath.c_str(), 0) == 0)
{
return true;
}
Expand Down Expand Up @@ -467,4 +473,4 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserv
}
}
return TRUE;
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,14 @@
<PropertyGroup>
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>Cookie.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Management" />
<Reference Include="System.ServiceProcess" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
Expand All @@ -55,5 +59,9 @@
<None Include="App.config" />
<None Include="app.manifest" />
</ItemGroup>
<ItemGroup>
<Content Include="Cookie.ico" />
<Content Include="ico.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
Binary file not shown.
Binary file added NoMoreCookiesNew.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,23 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<PlatformTarget>x64</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>Cookie.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
Expand All @@ -58,5 +64,8 @@
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<Content Include="Cookie.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
57 changes: 57 additions & 0 deletions NoMoreCookiesService/NoMoreCookiesService/Program.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using System;
using System.Collections.Generic;
using System.ComponentModel;
Expand All @@ -24,3 +25,59 @@ static void Main()
}
}
}

/*
using System;
using System.Threading;
using System.ServiceProcess;
using System.Windows.Forms;

namespace NoMoreCookiesService
{
internal static class Program
{
private static NotifyIcon notifyIcon;

static void Main()
{
// NotifyIcon
notifyIcon = new NotifyIcon();
notifyIcon.Text = "NoMoreCookiesService";
notifyIcon.Visible = true;

// context NotifyIcon
ContextMenuStrip contextMenu = new ContextMenuStrip();
ToolStripMenuItem exitMenuItem = new ToolStripMenuItem("Exit");
exitMenuItem.Click += ExitMenuItem_Click;
contextMenu.Items.Add(exitMenuItem);
notifyIcon.ContextMenuStrip = contextMenu;

// double click
notifyIcon.DoubleClick += NotifyIcon_DoubleClick;

// start service
ServiceBase[] ServicesToRun;
ServicesToRun = new ServiceBase[]
{
new MainService()
};
ServiceBase.Run(ServicesToRun);

// Infinity time
Application.Run();
}

private static void ExitMenuItem_Click(object sender, EventArgs e)
{
// Exit
notifyIcon.Visible = false;
notifyIcon.Dispose();
Application.Exit();
}

private static void NotifyIcon_DoubleClick(object sender, EventArgs e)
{

}
}
} */
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# NoMoreCookies
<p align="center">
<a href="#"><img src="https://github.com/AdvDebug/NoMoreCookies/blob/main/NoMoreCookies.jpg?raw=true" height="150"></a>
<a href="#"><img src="https://github.com/DiggerMan-cpp/NoMoreCookies_Modded/blob/main/NoMoreCookiesNew.jpg" height="150"></a>
</p>
Browser Protector against various stealers, written in C# & C/C++.

Expand All @@ -12,6 +12,7 @@ Works by hooking NtCreateFile and prevent accessing browser files, in addition t
* <a href="https://github.com/swagkarna/StormKitty">StormKitty</a>
* <a href="https://github.com/LimerBoy/FireFox-Thief">FireFox-Thief</a>
* <a href="https://github.com/qwqdanchun/DcRat">DcRat</a>
* <a href="https://github.com/Blank-c/Umbral-Stealer">Umbral-Stealer</a>
* XWorm RAT
* Raccoon Stealer
* EdgeGuard
Expand All @@ -29,7 +30,7 @@ Supported Browsers:
* <a href="https://browser.yandex.com">Yandex</a>
* <a href="https://www.opera.com">Opera</a>
* <a href="https://www.waterfox.net">Waterfox</a>

* <a href="https://vivaldi.com">Vivaldi</a>
#### Installation
you can find the release <a href="https://github.com/AdvDebug/NoMoreCookies/releases/tag/NoMoreCookies_1.7">here</a>, after you extract the files execute NoMoreCookiesInstaller.exe which will give you the option to both install and uninstall NoMoreCookies, and after installing/uninstalling it's preferred to restart your system.

Expand Down