Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

How do you bypass Smartscreen on W8/W10?

I made a program but everytime I start it on a new computer it prompts the SmartScreen thing, is there anyway to make it not popup?

I heard something about ZONE ID but I'm not sure how to do that, does anyone mind sharing how to bypass?
1st Google link:

http://mikehadlow.blogspot.com.es/2011/0...t.html?m=1

Maybe is useful for your purpose.

Edited: Not idea if this code will be useful (C# this time)

PHP Code

<?php 
using System
;
using System.IO;
using System.Runtime.InteropServices;
using System.Windows.Forms;

internal class Zone
{
    public static 
void WriteAlternateStream(string path, string text)
    {
        const 
int GENERIC_WRITE = 1073741824;
        const 
int FILE_SHARE_WRITE = 2;
        const 
int OPEN_ALWAYS = 4;
        var 
stream = CreateFileW(path, GENERIC_WRITE, FILE_SHARE_WRITE, IntPtr.Zero, OPEN_ALWAYS, 0, IntPtr.Zero);
        
using (FileStream fs = new FileStream(stream, FileAccess.Write))
        {
            
using (StreamWriter sw = new StreamWriter(fs))
            {
                
sw.Write(text);
            }
        }
    }
    public static 
void Id()
    {
        var 
x = Application.ExecutablePath + ":Zone.Identifier";
        
WriteAlternateStream(x, "[ZoneTransfer]\r\nZoneId=3");
    }
    
# region Imports
    
[DllImport("kernel32.dll", EntryPoint = "CreateFileW")]
    public static 
extern System.IntPtr CreateFileW(
        [
InAttribute()] [MarshalAsAttribute(UnmanagedType.LPWStr)] string lpFileName,
        
uint dwDesiredAccess,
        
uint dwShareMode,
        [
InAttribute()] IntPtr lpSecurityAttributes,
        
uint dwCreationDisposition,
        
uint dwFlagsAndAttributes,
        [
InAttribute()] IntPtr hTemplateFile
    
);
    
#endregion
} 


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Shell] by A13xSep 13, 2022 12:18 PM 2 259 Sep 13, 2022 12:18 PM
Last Post: ZribeDev
[Python] by SkidyJul 16, 2017 08:33 AM 2 167 Jul 16, 2017 08:33 AM
Last Post: Time2Disappear
[C#] by FileBossDec 8, 2015 12:42 PM 3 453 Dec 8, 2015 12:42 PM
Last Post: caesay