This file contains 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
// Sends CVE-2015-1635 / MS15-034 Test Request and checks for vulnerability | |
// based on https://gist.github.com/Zagrophyte/0fa7a8e2e507fac2b59d | |
static string TestMS15_034(String host, string staticFile, int port = 80) | |
{ | |
TcpClient tc = new TcpClient(); | |
string result = ""; | |
try | |
{ | |
tc.Connect(host, port); |
This file contains 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
-(NSString *)dateDiff:(NSString *)origDate { | |
NSDateFormatter *df = [[NSDateFormatter alloc] init]; | |
[df setFormatterBehavior:NSDateFormatterBehavior10_4]; | |
[df setDateFormat:@"EEE, dd MMM yy HH:mm:ss VVVV"]; | |
NSDate *convertedDate = [df dateFromString:origDate]; | |
[df release]; | |
NSDate *todayDate = [NSDate date]; | |
double ti = [convertedDate timeIntervalSinceDate:todayDate]; | |
ti = ti * -1; | |
if(ti < 1) { |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace YGSSifreIhtimal | |
{ | |
class Program | |
{ | |
const int soruSayisi = 45; |