Fhernd

ConsultaAutorAttribute.cs

Aug 29th, 2014
625
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.75 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Recetas.Cap03
  4. {
  5.     [AttributeUsage(AttributeTargets.Class | AttributeTargets.Assembly,
  6.                 AllowMultiple = true, Inherited = false)]
  7.     public class AutorAttribute : Attribute
  8.     {
  9.         private string organizacion;
  10.         private string nombre;
  11.        
  12.         // Constructor público:
  13.         public AutorAttribute (string nombre)
  14.         {
  15.             this.nombre = nombre;
  16.             organizacion = String.Empty;
  17.         }
  18.        
  19.         // Accede y modifica el nombre de la organización:
  20.         public string Organizacion
  21.         {
  22.             get
  23.             {
  24.                 return organizacion;
  25.             }
  26.             set
  27.             {
  28.                 organizacion = value;
  29.             }
  30.         }
  31.        
  32.         // Propiedad de sólo lectura (campo opcional):
  33.         public string Nombre
  34.         {
  35.             get
  36.             {
  37.                 return nombre;
  38.             }
  39.         }
  40.     }
  41.    
  42.     [AutorAttribute("Edward")]
  43.     [AutorAttribute("Germán", Organizacion = "OrtizOL")]
  44.     public class Reporte { }
  45.    
  46.     public sealed class ConsultaAutorAttribute
  47.     {
  48.         public static void Main()
  49.         {
  50.             // Obtención del tipo:
  51.             Type tipo = typeof (Reporte);
  52.            
  53.             // Recuperación arreglo con los atributos aplicados a `Reporte`:
  54.             object[] atributos = tipo.GetCustomAttributes(typeof(AutorAttribute), true);
  55.            
  56.             // Enumera los atributos aplicados a `Reporte`:
  57.             foreach (AutorAttribute atributo in atributos)
  58.             {
  59.                 Console.WriteLine ("Nombre: {0} - Organización: {1}", atributo.Nombre, atributo.Organizacion);
  60.             }
  61.         }
  62.     }
  63. }
Advertisement
Comments
  • shobyto
    70 days
    # CSS 0.85 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://docs.google.com/document/d/1dOCZEHS5JtM51RITOJzbS4o3hZ-__wTTRXQkV1MexNQ/edit?usp=sharing
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 38% — they will simply correct the exchange rate.
    8. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    9.  
    10. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without any verification from Swapzone — instant swap).
Add Comment
Please, Sign In to add comment