This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SecureRandom : RandomNumberGenerator | |
{ | |
private readonly RandomNumberGenerator rng; | |
public SecureRandom() | |
{ | |
this.rng = new RNGCryptoServiceProvider(); | |
} | |
public int Next() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Class SecureRandom : Inherits Security.Cryptography.RandomNumberGenerator | |
Private ReadOnly rng As New Security.Cryptography.RNGCryptoServiceProvider() | |
Private Function GetRandomBytes() As Byte() | |
Dim data As Byte() = New Byte(4 - 1) {} | |
rng.GetBytes(data) | |
Return data | |
End Function | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' <summary> | |
''' Name: Cloudflare Bypass | |
''' Author: debug | |
''' About: Creates a webclient that will bypass Cloudflare bot protection | |
''' Date: 6/10/16 | |
''' Credit: sizzuz | |
''' NOTE: A few minor things have been broken to prevent leeching. Thanks | |
''' </summary> | |
Class CloudflareBypass | |
Private Shared _UserAgent As String |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Name: Cloudflare Bypass | |
/// Author: debug | |
/// About: Creates a webclient that will bypass Cloudflare bot protection | |
/// Date: 6/10/16 | |
/// Credit: sizzuz | |
/// NOTE: A few minor things have been broken to prevent leeching. Thanks | |
/// </summary> | |
class CloudflareBypass | |
{ |