Jump to content

mesvak

Member
  • Content Count

    1
  • Points

  • Joined

  • Last visited

Community Likes

0 Neutral

About mesvak

  • Usertitle
    Lurker

Recent Profile Visitors

552 profile views
  1. public static List<string> ReplaceValuesRecursive(string input, BotData data) { var toReplace = new List<string>(); var match = Regex.Match(input, @"<([^\[]*)\[\*\]>"); if (match.Success) { var full = match.Groups[0].Value; var name = match.Groups[1].Value; var list = data.Variables.GetList(name); if (list == null) list = data.GlobalVariables.GetList(name); if (list == null) toReplace.Add(input); else { foreach (var item in list) toReplace.Add(input.Replace(full, item)); } goto END; } // Regex parse the syntax <DICT(*)> (wildcard key -> returns list of all values) match = Regex.Match(input, @"<([^\(]*)\(\*\)>"); if (match.Success) { var full = match.Groups[0].Value; var name = match.Groups[1].Value; var dict = data.Variables.GetDictionary(name); if (dict == null) dict = data.GlobalVariables.GetDictionary(name); if (dict == null) toReplace.Add(input); else { foreach (var item in dict) toReplace.Add(input.Replace(full, item.Value)); } goto END; } // Regex parse the syntax <DICT{*}> (wildcard value -> returns list of all keys) match = Regex.Match(input, @"<([^\{]*)\{\*\}>"); if (match.Success) { var full = match.Groups[0].Value; var name = match.Groups[1].Value; var dict = data.Variables.GetDictionary(name); if (dict == null) dict = data.GlobalVariables.GetDictionary(name); if (dict == null) toReplace.Add(input); else { foreach (var item in dict) toReplace.Add(input.Replace(full, item.Key)); } goto END; } toReplace.Add(input); END:

About us

3rdWorld.cc is a cracking forum community that suits the purpose of everyone. We offer paid program for free, cracking tools, combolists, marketplace and many more. You can also expand on knowledge and participate in active discussions.

×