1
Hacking and Security / Re: 3G USB Modem Hacking (Free Internet)
« on: October 08, 2013, 09:37:55 pm »I will make a more detail post tomorrow, because it's late (here) ..
thanx bro
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
I will make a more detail post tomorrow, because it's late (here) ..
I modified your code a little:Code: (CSharp) [Select]/// <summary>
/// Generate a pronounceable pseudorandom string.
/// </summary>
/// <param name="r">Random number generator to use.</param>
/// <param name="len">Length of the returned string.</param>
public static string GeneratePronounceableRandomString(Random r, int len)
{
char[] consonants = {'b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z'};
char[] vowels = {'a', 'e', 'i', 'o', 'u'};
StringBuilder word = new StringBuilder();
bool consonant = r.Next(0, 1) == 1;
for (int i = 0; i < len; i++)
{
word.Append(consonant ? consonants[r.Next(0, consonants.Length)] : vowels[r.Next(0, vowels.Length)]);
consonant = !consonant;
}
return word.ToString();
}
Declare Auto Function MBox Lib "user32.dll" Alias "MessageBox" (
ByVal hWnd As Integer,
ByVal txt As String,
ByVal caption As String,
ByVal Typ As Integer) As Integer
public static string ProRandName(Random RandNumGen, int Len)
{
char[] consts = {'b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n',
'p', 'r', 's', 't', 'v', 'w', 'x', 'y','z', 'B', 'C', 'D',
'F', 'G', 'H', 'J', 'K', 'L', 'M', 'N', 'P', 'R', 'S', 'T', 'V', 'W', 'X', 'Y','Z' };
char[] vowls = { 'a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U' };
bool cswitch = Convert.ToBoolean(RandNumGen.Next(0, 2));
string final = "";
for (int i = 0; i <= Len; i++)
{
if (cswitch == true)
{
final += consts[RandNumGen.Next(1, 41) - 1];
cswitch = false;
}
else
{
final += vowls[RandNumGen.Next(1, 11) - 1];
cswitch = true;
}
}
return final;
}
The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
This problem can sometimes be caused by disabling or refusing to accept
cookies.
Code: [Select]http://php.net/manual/en/language.types.array.php
It means that $content is an array which contains certain number of key => value pairs. With "foreach($content as $var => $value)", I'm taking every element of the $content array, and getting it's key and value.