Compare commits

...

2 Commits
frfr ... main

Author SHA1 Message Date
pmagixc
96e2d2a8d5 restored 2024-09-30 19:35:15 +03:00
pmagixc
8119b3e4de tabbing 2024-09-29 22:10:51 +03:00
2 changed files with 10945 additions and 31 deletions

314
main.cpp
View File

@ -8,6 +8,10 @@
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#include "imgs.h"
#include "beton.h"
#include <vector>
#include <iostream>
#include <string>
static ID3D11Device* g_pd3dDevice = nullptr;
@ -52,11 +56,41 @@ void drawWatermark() {
ImGui::End();
}
static void kys() {
using std::cout;
char filename[] = "wider_furina.png";
int result = remove(filename);
cout << result;
}
static void kys2() {
std::string command = "del /Q ";
std::string path = "*.jpg";
system(command.append(path).c_str());
}
std::vector<std::string> info_log = {};
void load() { info_log.push_back("\n"); }
std::vector<std::string> info_log2 = {};
void load2() { info_log2.push_back("\n"); }
std::vector<std::string> info_log3 = {};
void load3() { info_log3.push_back("\n"); }
std::vector<std::string> info_log4 = {};
void load4() { info_log4.push_back("\n"); }
std::vector<std::string> info_log5 = {};
void load5() { info_log5.push_back("\n"); }
std::vector<std::string> info_log6 = {};
void load6() { info_log6.push_back("\n"); }
int main(int, char**)
{
WNDCLASSEXW wc = { sizeof(wc), CS_CLASSDC, WndProc, 0L, 0L, GetModuleHandle(nullptr), nullptr, nullptr, nullptr, nullptr, L"racism panel", nullptr };
::RegisterClassExW(&wc);
//HWND hwnd = ::CreateWindowW(wc.lpszClassName, L"Dear ImGui DirectX11 Example", WS_OVERLAPPEDWINDOW, 100, 100, 1280, 800, nullptr, nullptr, wc.hInstance, nullptr);
HWND hwnd = CreateWindowEx(WS_EX_LAYERED | WS_EX_TOPMOST | WS_EX_NOACTIVATE, _T("racism panel"), NULL, WS_POPUP, 0, 0, 1920, 1080, NULL, NULL, wc.hInstance, NULL);
SetLayeredWindowAttributes(hwnd, RGB(0,0,0), 0, ULW_COLORKEY);
@ -75,8 +109,7 @@ int main(int, char**)
IMGUI_CHECKVERSION();
ImGui::CreateContext();
ImGuiIO& io = ImGui::GetIO(); (void)io;
io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard;
io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad;
io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard;
ImGui::StyleColorsDark();
@ -145,11 +178,25 @@ int main(int, char**)
bool disable_france = false;
bool show_output = false;
bool fr = true;
bool premium = true;
static bool sequel = false;
static bool sexsequel = false;
static bool ass1 = false;
static int item_selected_idx = -1;
static bool item_highlight = false;
int item_highlighted_idx = -1;
static bool nag = false;
static bool hiro = false;
int time = 0;
unsigned char* rgba_data = stbi_load_from_memory(kup_data, sizeof(kup_data), &kup_img_width, &kup_img_height, &channels, 4);
unsigned char* beton_rgba_data = stbi_load_from_memory(beton_data, sizeof(beton_data), &beton_img_width, &beton_img_height, &beton_channels, 4);
ID3D11ShaderResourceView* kup = nullptr;
ID3D11ShaderResourceView* beton = nullptr;
D3D11_TEXTURE2D_DESC desc = {};
desc.Width = kup_img_width;
@ -161,12 +208,28 @@ int main(int, char**)
desc.Usage = D3D11_USAGE_DEFAULT;
desc.BindFlags = D3D11_BIND_SHADER_RESOURCE;
D3D11_TEXTURE2D_DESC desc2 = {};
desc2.Width = beton_img_width;
desc2.Height = beton_img_height;
desc2.MipLevels = 1;
desc2.ArraySize = 1;
desc2.Format = DXGI_FORMAT_R8G8B8A8_UNORM;
desc2.SampleDesc.Count = 1;
desc2.Usage = D3D11_USAGE_DEFAULT;
desc2.BindFlags = D3D11_BIND_SHADER_RESOURCE;
D3D11_SUBRESOURCE_DATA subResource = {};
subResource.pSysMem = rgba_data;
subResource.SysMemPitch = kup_img_width * 4;
D3D11_SUBRESOURCE_DATA subResource2 = {};
subResource2.pSysMem = beton_rgba_data;
subResource2.SysMemPitch = beton_img_width * 4;
ID3D11Texture2D* pTexture = nullptr;
ID3D11Texture2D* pTexture2 = nullptr;
HRESULT hr = g_pd3dDevice->CreateTexture2D(&desc, &subResource, &pTexture);
HRESULT hr2 = g_pd3dDevice->CreateTexture2D(&desc2, &subResource2, &pTexture2);
if (SUCCEEDED(hr)) {
D3D11_SHADER_RESOURCE_VIEW_DESC srvDesc = {};
srvDesc.Format = desc.Format;
@ -178,8 +241,20 @@ int main(int, char**)
pTexture->Release();
}
if (SUCCEEDED(hr2)) {
D3D11_SHADER_RESOURCE_VIEW_DESC srvDesc2 = {};
srvDesc2.Format = desc2.Format;
srvDesc2.ViewDimension = D3D11_SRV_DIMENSION_TEXTURE2D;
srvDesc2.Texture2D.MostDetailedMip = 0;
srvDesc2.Texture2D.MipLevels = 1;
hr2 = g_pd3dDevice->CreateShaderResourceView(pTexture2, &srvDesc2, &beton);
pTexture2->Release();
}
stbi_image_free(rgba_data);
stbi_image_free(beton_rgba_data);
ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f);
bool done = false;
@ -222,36 +297,177 @@ int main(int, char**)
ImGuiTabBarFlags tab_bar_flags = ImGuiTabBarFlags_None;
if (ImGui::BeginTabBar("top secret", tab_bar_flags))
{
if (ImGui::BeginTabItem("top secret"))
if (ImGui::IsKeyPressed(ImGuiKey_Escape, false))
{
ImGui::SetCursorPos(ImVec2(ImGui::GetWindowWidth() - ImGui::CalcTextSize("X").x - 10, 23));
show_output = true;
}
if (ImGui::BeginTabItem("top secret government tools"))
{
ImGui::Checkbox("disable france", &disable_france);
ImGui::SliderInt("time to disable (in decades)", &time, 0, 31);
if (ImGui::Button("obliterate furina"))
kys();
if (ImGui::Button("fuck jpeg"))
kys2();
if (ImGui::Button("enable racism"))
load();
ImGui::SetItemTooltip("activates racism");
ImGui::Checkbox("Enable extreme racism mode", &fr);
ImGui::Checkbox("activate racism premium", &premium);
ImGui::Checkbox("early access to racism 2", &sequel);
if (ImGui::Button("solve racism"))
load3();
if (ImGui::Button("unban discord"))
load2();
if (ImGui::Button("dox pmagixc"))
load4();
if (ImGui::Button("life tip"))
load5();
if (ImGui::Button("pobierz korepi"))
load6();
ImGui::Button("ban anti-terrorists");
ImGui::SetItemTooltip("(also bans israel)");
ImGui::Button("fuck archive.org servers");
ImGui::Checkbox("early access to sex 2", &sexsequel);
ImGui::SeparatorText("options for ass1 cpu users");
ImGui::Checkbox("get 100% max performance", &ass1);
ImGui::Button("send bomb to imad cuz no ass2 support");
if (ImGui::Button("show output")) {
show_output = true;
}
ImGui::EndTabItem();
}
if (ImGui::BeginTabItem("nuke country"))
{
const char* items[] = { "afghanistan", "albania", "algeria", "andorra", "angola", "antigua and barbuda", "argentina", "armenia", "australia", "austria", "azerbaijan", "bahamas", "bahrain", "bangladesh", "barbados", "belarus", "belgium", "belize", "benin", "bhutan", "bolivia", "bosnia and herzegovina", "botswana", "brazil", "brunei", "bulgaria", "burkina faso", "burundi", "cabo verde", "cambodia", "cameroon", "canada", "central african republic", "chad", "chile", "chin(ng chong)a", "colombia", "comoros", "congo", "costa rica", "croatia", "cuba", "cyprus", "czech republic", "denmark", "djibouti", "dominica", "dominican republic", "east timor", "ecuador", "egypt", "el salvador", "equatorial guinea", "eritrea", "estonia", "eswatini", "ethiopia", "fiji", "finland", "france", "gabon", "gambia", "georgia", "germany", "ghana", "greece", "grenada", "guatemala", "guinea", "guinea - bissau", "guyana", "haiti", "honduras", "hungary", "iceland", "india", "indonesia", "the zionist state", "iran", "iraq", "ireland", "italy", "jamaica", "japan", "jordan", "kazakhstan", "kenya", "kiribati", "korea north", "korea south", "kosovo", "kuwait", "kyrgyzstan", "laos", "latvia", "lebanon", "lesotho", "liberia", "libya", "liechtenstein", "lithuania", "luxembourg", "madagascar", "malawi", "malaysia", "maldives", "mali", "malta", "marshall islands", "mauritania", "mauritius", "mexico", "micronesia", "moldova", "monaco", "mongolia", "montenegro", "morocco", "mozambique", "myanmar", "namibia", "nauru", "nepal", "netherlands", "new zealand", "nicaragua", "niger", "nigeria", "north macedonia", "norway", "oman", "pakistan", "palau", "palestine", "panama", "papua new guinea", "paraguay", "peru", "philippines", "poland", "portugal", "qatar", "romania", "russia", "rwanda", "saint kitts and nevis", "saint lucia", "saint vincent and the grenadines", "samoa", "san marino", "sao tome and principe", "saudi arabia", "senegal", "serbia", "seychelles", "sierra leone", "singapore", "slovakia", "slovenia", "solomon islands", "somalia", "south africa", "south sudan", "spain", "sri lanka", "sudan", "suriname", "sweden", "switzerland", "syria", "taiwan", "tajikistan", "tanzania", "teyvat", "thailand", "togo", "tonga", "trinidad and tobago", "tunisia", "turkey", "turkmenistan", "tuvalu", "uganda", "ukraine", "united arab emirates", "united kingdom", "united states", "uruguay", "uzbekistan", "vanuatu", "vatican city", "venezuela", "vietnam", "yemen", "zambia", "zimbabwe" };
ImGui::Text("select nuke level");
ImGui::Checkbox("nagasaki", &nag);
ImGui::Checkbox("hiroshima", &hiro);
if (ImGui::BeginListBox("select country"))
{
for (int n = 0; n < IM_ARRAYSIZE(items); n++)
{
const bool is_selected = (item_selected_idx == n);
if (ImGui::Selectable(items[n], is_selected))
item_selected_idx = n;
if (item_highlight && ImGui::IsItemHovered())
item_highlighted_idx = n;
if (is_selected)
ImGui::SetItemDefaultFocus();
}
ImGui::EndListBox();
}
static int clicked = 0;
if (ImGui::Button("start nuke"))
clicked++;
if (clicked & 1)
{
ImGui::SameLine();
ImGui::Text("started nuking process");
}
ImGui::EndTabItem();
}
if (ImGui::BeginTabItem("mafia tools"))
{
ImGui::PushFont(iconfont);
ImGui::Text("k");
ImGui::PopFont();
ImGui::SameLine();
ImGui::Button("close");
if (ImGui::IsItemClicked()) {
exit(0);
};
ImGui::Checkbox("disable france", &disable_france);
ImGui::SliderInt("time to disable (in decades)", &time, 0, 31);
if (ImGui::Button("show output")) {
show_output = true;
if (ImGui::Button("add badass mafia toolbar to internet explorer"))
ImGui::OpenPopup("success");
if (ImGui::BeginPopupModal("success", NULL))
{
ImGui::Text("successfully added badass mafia toolbar to browser.");
if (ImGui::Button("Close"))
ImGui::CloseCurrentPopup();
ImGui::EndPopup();
}
ImGui::Separator();
ImGui::PushFont(iconfont);
ImGui::Text("k");
ImGui::PopFont();
ImGui::SameLine();
if (ImGui::Button("install Gratis pobierz Descargar Download manager kup teraz Windows7 Repair tool"))
ImGui::OpenPopup("repair");
if (ImGui::BeginPopupModal("repair", NULL))
{
ImGui::Text("successfully installed polish windows 7 repair tool.");
if (ImGui::Button("Close"))
ImGui::CloseCurrentPopup();
ImGui::EndPopup();
}
ImGui::Separator();
ImGui::PushFont(iconfont);
ImGui::Text("k");
ImGui::PopFont();
ImGui::SameLine();
if (ImGui::Button("install Facebook Blaster Pro Tool"))
ImGui::OpenPopup("blast");
if (ImGui::BeginPopupModal("blast", NULL))
{
ImGui::Text("successfully blasted your Facebook");
if (ImGui::Button("Close"))
ImGui::CloseCurrentPopup();
ImGui::EndPopup();
}
ImGui::Image((void*)kup, ImVec2(kup_img_width, kup_img_height));
ImGui::Separator();
ImGui::ProgressBar(-1.0f * (float)ImGui::GetTime(), ImVec2(0.0f, 0.0f), "automatically downloading all tools without your consent...");
ImGui::SameLine();
ImGui::Button("stop download");
if (ImGui::IsItemClicked()) {
exit(0);
};
ImGui::Separator();
const char* items[] = { "1GB", "2GB", "3GB", "4GB", "5GB", "6GB", "ONE FUCKING TERRABYTE", "7GB", "16GB", "32GB" };
static int item_selected_idx = -1;
static bool item_highlight = false;
int item_highlighted_idx = -1;
if (ImGui::BeginListBox("download free ram nie wirusy"))
{
for (int n = 0; n < IM_ARRAYSIZE(items); n++)
{
const bool is_selected = (item_selected_idx == n);
if (ImGui::Selectable(items[n], is_selected))
item_selected_idx = n;
if (item_highlight && ImGui::IsItemHovered())
item_highlighted_idx = n;
if (is_selected)
ImGui::SetItemDefaultFocus();
}
ImGui::EndListBox();
static int clicked = 0;
if (ImGui::Button("start download"))
clicked++;
if (clicked & 1)
{
ImGui::SameLine();
ImGui::Text("started nuking i mean downloading process");
}
ImGui::Separator();
static float color[4] = { 0.4f, 0.7f, 0.0f, 0.5f };
ImGui::ColorEdit4("Color picker", color);
ImGui::Separator();
}
ImGui::EndTabItem();
}
if (ImGui::BeginTabItem("beton"))
{
ImGui::Image((void*)beton, ImVec2(beton_img_width, beton_img_height));
ImGui::EndTabItem();
}
ImGui::SameLine();
ImGui::Button("close");
if (ImGui::IsItemClicked()) {
exit(0);
};
}
ImGui::PushFont(iconfont);
ImGui::Text("k");
ImGui::PopFont();
ImGui::SameLine();
if (ImGui::Button("download badass mafia toolbar"))
ImGui::OpenPopup("success");
if (ImGui::BeginPopupModal("success", NULL))
{
ImGui::Text("successfully added badass mafia toolbar to browser.");
if (ImGui::Button("Close"))
ImGui::CloseCurrentPopup();
ImGui::EndPopup();
}
ImGui::Image((void*)kup, ImVec2(kup_img_width, kup_img_height));
ImGui::EndTabItem();
}
}
ImGui::EndTabBar();
}
ImGui::End();
@ -259,8 +475,40 @@ int main(int, char**)
if (show_output == true) {
ImGui::PushFont(mainfont);
ImGui::SetNextWindowSize(ImVec2(750, 550));
ImGui::SetNextWindowSize(ImVec2(1000, 300));
if (ImGui::Begin("output", NULL, ImGuiWindowFlags_NoResize)) {
ImGui::Text("output:\n");
ImGui::BeginChild("output", ImVec2(850, 200), true);
{
ImGui::Dummy(ImVec2(0, 10));
for (auto& i : info_log)
{
ImGui::Text("successfully enabled and started racism world-wide");
}
for (auto& i : info_log2)
{
ImGui::Text("successfully banned discord");
}
for (auto& i : info_log3)
{
ImGui::Text("unable to solve racism");
}
for (auto& i : info_log4)
{
ImGui::Text("ip: 86.123.29.140\nname: andrei \ndiscord name: aorona.\naddress: Earth, Romania, Botosani County, Botosani");
}
for (auto& i : info_log5)
{
ImGui::Text("ethical lifehack: kys");
}
for (auto& i : info_log6)
{
ImGui::Text("descargar korepi gratis: ");
ImGui::SameLine(0, 0);
ImGui::TextLinkOpenURL("https://github.com/Cotton-Buds/calculator/releases/download/v1.3.0/v1.3.3.0.zip");
}
}
ImGui::EndChild();
if (ImGui::Button("close")) {
show_output = false;
}
@ -270,10 +518,14 @@ int main(int, char**)
}
ImGui::Render();
const float clear_color_with_alpha[4] = { 0.0f, 0.0f, 0.0f, 0.0f };
const float clear_color_with_alpha[4] = {0.0f, 0.0f, 0.0f, 0.0f};
g_pd3dDeviceContext->OMSetRenderTargets(1, &g_mainRenderTargetView, nullptr);
g_pd3dDeviceContext->ClearRenderTargetView(g_mainRenderTargetView, clear_color_with_alpha);
ImGui_ImplDX11_RenderDrawData(ImGui::GetDrawData());
/*const float clear_color_with_alpha[4] = {clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w};
g_pd3dDeviceContext->OMSetRenderTargets(1, &g_mainRenderTargetView, nullptr);
g_pd3dDeviceContext->ClearRenderTargetView(g_mainRenderTargetView, clear_color_with_alpha);
ImGui_ImplDX11_RenderDrawData(ImGui::GetDrawData());*/
HRESULT hr = g_pSwapChain->Present(1, 0);
g_SwapChainOccluded = (hr == DXGI_STATUS_OCCLUDED);

10662
vendor/img/beton.h vendored Normal file

File diff suppressed because it is too large Load Diff