Skip to content
This repository was archived by the owner on Jan 3, 2025. It is now read-only.

Commit

Permalink
fixed url and added the compiled binaries in the release
Browse files Browse the repository at this point in the history
  • Loading branch information
AlBovo committed Jan 3, 2025
1 parent 8075f73 commit f578dc0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
6 changes: 4 additions & 2 deletions Problema7/challenge.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@
* @author Antonio De Rosa ([email protected])
* @date 2024-01-18
*/
package Problema7;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
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");
Expand Down
3 changes: 2 additions & 1 deletion Problema7/challenge.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import java.net.HttpURLConnection
import java.net.URL

fun main(args: Array<String>) {
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"
Expand Down
1 change: 1 addition & 0 deletions Problema7/flag.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
you_know_what_is_an_url_???
3 changes: 2 additions & 1 deletion Problema7/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 4 additions & 1 deletion Problema7/main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit f578dc0

Please sign in to comment.