Jump to content
Tuts 4 You

Xamarin C# CrackMe

1 Screenshot

Platform / Language : Xamarin C#
Protection : None
VirusTotal : 1/66

Your goal is to Crack the File and make a Tutorial or Write Instructions about the Steps done by you.


What is Xamarin?

Xamarin is an open-source platform for building modern and performant applications for iOS, Android, and Windows with .NET. Xamarin is an abstraction layer that manages communication of shared code with underlying platform code. Xamarin runs in a managed environment that provides conveniences such as memory allocation and garbage collection.


Edited by BlackHat

using System;
using Android.App;
using Android.OS;
using Android.Runtime;
using Android.Views;
using AndroidX.AppCompat.Widget;
using AndroidX.AppCompat.App;
using Google.Android.Material.FloatingActionButton;
using Google.Android.Material.Snackbar;

namespace XamaTest
    [Activity(Label = "@string/app_name", Theme = "@style/AppTheme.NoActionBar", MainLauncher = true)]
    public class MainActivity : AppCompatActivity
        protected override void OnCreate(Bundle savedInstanceState)
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);

            Toolbar toolbar = FindViewById<Toolbar>(Resource.Id.toolbar);

            FloatingActionButton fab = FindViewById<FloatingActionButton>(Resource.Id.fab);
            fab.Click += FabOnClick;

            var btncheck = FindViewById<AppCompatButton>(Resource.Id.check);
            btncheck.Click += Btncheck_Click;

        private void Btncheck_Click(object sender, EventArgs e)
            var textbox = FindViewById<AppCompatEditText>(Resource.Id.textbox);
            if (textbox.Text == "You need to tell me this one :p")
                Android.Widget.Toast.MakeText(this, "Correct!", Android.Widget.ToastLength.Short).Show();
                Android.Widget.Toast.MakeText(this, "Wrong!", Android.Widget.ToastLength.Short).Show();

        public override bool OnCreateOptionsMenu(IMenu menu)
            MenuInflater.Inflate(Resource.Menu.menu_main, menu);
            return true;

        public override bool OnOptionsItemSelected(IMenuItem item)
            int id = item.ItemId;
            if (id == Resource.Id.action_settings)
                return true;

            return base.OnOptionsItemSelected(item);

        private void FabOnClick(object sender, EventArgs eventArgs)
            View view = (View)sender;
            Snackbar.Make(view, "Crackme Challenge", Snackbar.LengthLong).SetAction("Action", (View.IOnClickListener)null).Show();

        public override void OnRequestPermissionsResult(int requestCode, string[] permissions, [GeneratedEnum] Android.Content.PM.Permission[] grantResults)
            Xamarin.Essentials.Platform.OnRequestPermissionsResult(requestCode, permissions, grantResults);

            base.OnRequestPermissionsResult(requestCode, permissions, grantResults);

User Feedback

Recommended Comments

There are no comments to display.

  • Create New...