From f578dc0093df488612d50bdd2423aa824990c2fd Mon Sep 17 00:00:00 2001 From: AlBovo Date: Fri, 3 Jan 2025 16:08:25 +0100 Subject: [PATCH] fixed url and added the compiled binaries in the release --- Problema7/challenge.java | 6 ++++-- Problema7/challenge.kt | 3 ++- Problema7/flag.txt | 1 + Problema7/main.cpp | 3 ++- Problema7/main.cs | 5 ++++- 5 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 Problema7/flag.txt diff --git a/Problema7/challenge.java b/Problema7/challenge.java index 0ce5cd6..0a18290 100644 --- a/Problema7/challenge.java +++ b/Problema7/challenge.java @@ -3,6 +3,7 @@ * @author Antonio De Rosa (antonio.derosa.stud@ispascalcomandini.it) * @date 2024-01-18 */ +package Problema7; import java.io.BufferedReader; import java.io.IOException; @@ -10,9 +11,10 @@ import java.net.HttpURLConnection; import java.net.URL; -public class Main { +public class challenge { public static void main(String[] args) throws IOException { - String urlFlag = "https://www.antostarwars.xyz/flag.txt"; + // Non abbiamo più un sito disponibile per questo compito (non voglio scrivere una gh-page) + String urlFlag = "https://github.com/AlBovo/ReverseProject/blob/main/Problema7/flag.txt"; URL url = new URL(urlFlag); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); diff --git a/Problema7/challenge.kt b/Problema7/challenge.kt index a6fc91f..afc5f4b 100644 --- a/Problema7/challenge.kt +++ b/Problema7/challenge.kt @@ -12,7 +12,8 @@ import java.net.HttpURLConnection import java.net.URL fun main(args: Array) { - val urlFlag = "https://www.antostarwars.xyz/flag.txt" + // Non abbiamo più un sito disponibile per questo compito (non voglio scrivere una gh-page) + val urlFlag = "https://github.com/AlBovo/ReverseProject/blob/main/Problema7/flag.txt" val url = URL(urlFlag) val connection: HttpURLConnection = url.openConnection() as HttpURLConnection connection.requestMethod = "GET" diff --git a/Problema7/flag.txt b/Problema7/flag.txt new file mode 100644 index 0000000..085c91c --- /dev/null +++ b/Problema7/flag.txt @@ -0,0 +1 @@ +you_know_what_is_an_url_??? diff --git a/Problema7/main.cpp b/Problema7/main.cpp index b11418a..41d67d8 100644 --- a/Problema7/main.cpp +++ b/Problema7/main.cpp @@ -52,7 +52,8 @@ bool makeHttpRequest(const std::string& url, std::string& content) int main() { - std::string urlFlag = "https://www.antostarwars.xyz/flag.txt"; + // Non abbiamo più un sito disponibile per questo compito (non voglio scrivere una gh-page) + std::string urlFlag = "https://github.com/AlBovo/ReverseProject/blob/main/Problema7/flag.txt"; std::cout << "Vuoi leggere la flag? Inserisci l'url da cui prendere la flag\nSicuro di riuscirci?" << std::endl; std::string inputUrl; diff --git a/Problema7/main.cs b/Problema7/main.cs index 4d4f698..46a175d 100644 --- a/Problema7/main.cs +++ b/Problema7/main.cs @@ -5,12 +5,15 @@ * Compile with: mcs -out:main.exe main.cs */ +using System; +using System.IO; using System.Net; public class MainClass { static void Main(string[] args) { - string urlFlag = "https://www.antostarwars.xyz/flag.txt"; + // Non abbiamo più un sito disponibile per questo compito (non voglio scrivere una gh-page) + string urlFlag = "https://github.com/AlBovo/ReverseProject/blob/main/Problema7/flag.txt"; Console.WriteLine("Vuoi leggere la flag? Inserisci l'url da cui prendere la flag\nSicuro di riuscirci?"); string inputUrl = Console.ReadLine();