 |
日历
« June 2025 » |
Su |
Mo |
Tu |
We |
Th |
Fr |
Sa |
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 |
|
 |
PortWatcher's Blog
Sunday, 2025-06-29, 11:03 PM Welcome Guest
BlogMain » coding
来自网络
Code <style>.c {margin :1px;width:19px;height:19px;background:red;position:absolute;} .d {margin :1px;width:19px;height:19px;background:gray;position:absolute;} .f {top:0px;left:0px;background:black;position:absolute;} </style> <body></body><html> <script> var over=false,shapes=("0,1,1,1,2,1,3,1;1,0,1,1,1,2,2,2;2,0,2,1,2,2,1
...
Read more »
Category:
coding
|
Views:
474
|
Added by:
Jury
|
Date:
2012-07-03
|
|
(show "Hello world")
Category:
coding
|
Views:
548
|
Added by:
Jury
|
Date:
2012-01-24
|
|
文章转自冰封的世界百度空间
我们都知道按win+D可以把所有的窗口最小化到任务栏上,今天我们不讨论这个功能,我们讨论一个类似的功能,一键把任务栏上的窗口隐藏
起来。比如按下ALT+D把任务栏上的窗口隐藏起来,再次按时,又显示成原来的样子。
我们来分析一下实现的过程和方法,因为在什么时候按下ALT+D键,都可以把窗口隐藏,所以要使用到系统钩子。
一、先创建Dll文件(先看具体文件代码,之后作解释):
Code
#include<windows.h> #include<stack> using namespace std; extern "C"__declspec(dllexport) void sethook(); extern "C"__declspec(dllexport) void stophook(); #ifndef WH_KEYBOARD_LL #define WH_KEYBOARD_LL 13 #endif HHOOK hook=NULL;//钩子句柄 stack<HWND> taskhwnd;//存任务栏上的窗口句柄 in
...
Read more »
Category:
coding
|
Views:
1150
|
Added by:
Jury
|
Date:
2011-05-09
|
|
转自CSDN 为了更直观的了解输入表结构,请看下面来在《加密与解密》第三版中的图示: Code /*本程序旨在说明如何阅读IMAGE_IMPORT_DESCRIPTOR(IID)输入表结构*/ #include <windows.h> #include <stdio.h> //ImageDirectoryEntryToData //微软的ImageHlp库中提供了大量有关对PE操作得到API #include <imagehlp.h> #pragma comment(lib,"imagehlp.lib") /************************************************************************ 概念: 1.输入表(IID): 数据目录第二个成员指向输入表,是一个以IMAGE_IMPORT_DESCRIPTOR(IID)结构开
...
Read more »
Category:
coding
|
Views:
946
|
Added by:
Jury
|
Date:
2011-01-17
|
|
PS:我过了很久才转的这篇,怕被怀疑泄露VIP资料```我只是觉得短短几行有价值的代码胜过一切空谈```所以情不自禁还是转了```
转自黑客防线Windows内核编程板块```膜拜技术大牛,叹自己思路之堵塞,眼光之短浅```` 杀毒软件和Rootkit程序为了保护自己的进程不被关闭,经常喜欢Hook NtTerminateProcess 函数,这样的话我们可以调用VirtualProtect函数,将进程内存的有效区域全部改成"不可执行”。那么进程使用到这些已经标识为"不可执行”的内存区域时,就会自动退出。代码如下: Code #include <stdio.h> #include <windows.h> #include <TLHELP32.H> DWORD GetProcessID(char *ProcessName) { BOOL bMore; HANDLE pHandle; PROCESSENTRY32 pe32;
...
Read more »
Category:
coding
|
Views:
760
|
Added by:
Jury
|
Date:
2010-11-23
|
|
Code #ifndef UNICODE #define UNICODE #endif #include <stdio.h> #include <windows.h> #include <lm.h> #pragma comment(lib,"netapi32") int Usage(wchar_t *); int wmain(int argc, wchar_t *argv[]) { USER_INFO_1 ui; DWORD dwError = 0; if(argc!=3) { //fwprintf(stderr,L"usage:%s test11 test123\n",argv[0]); Usage(argv[0]); return 0; } ui.usri1_name = argv[1];&n
...
Read more »
Category:
coding
|
Views:
806
|
Added by:
Jury
|
Date:
2010-10-16
|
|
1、禁止Ctrl+C 、右健
<html>
<head>
<script language=javascript>
function nocopy()
{
alert("对不起,为保护作者权益,本站文章不允许复制。\n\n如有特殊需要,请与本站联系。");
event.returnValue=false;
}
</script>
<script>
function stop(){
return false;
}
document.oncontextmenu=stop;
</script>
</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 oncopy="nocopy()">
呵呵
</BODY>
</html>
2、禁示右健
把以下代码加到<head></head>之间
<script language="JavaScript">function click(){if(event.button==2){window.external.addFavorite(
...
Read more »
Category:
coding
|
Views:
1004
|
Added by:
Jury
|
Date:
2010-06-10
|
|
Code #include <winsock2.h> #include <Ws2tcpip.h> #include <stdio.h> #include <stdlib.h> #define SEQ 0x28376839 #define NUM 7//反射服务器的个数 #define FAKE_IP "192.168.0.6" //伪装IP的起始值,本程序的伪装IP覆盖一个B类网段 #define STATUS_FAILED 0xFFFF //错误返回值 typedef struct _iphdr //定义IP首部 { unsigned char h_verlen; //4位首部长度,4位IP版本号 unsigned char tos; //8位服务类型TOS unsigned short total_len; //16位总长度(字节) unsigned short ident; //16位标识 unsigned short frag_and_flags; //3位标志位 &nb
...
Read more »
Category:
coding
|
Views:
756
|
Added by:
Jury
|
Date:
2010-06-07
|
|
还是幻泉大大贴出来的````我发现菜鸟和高手信息的接触层面真的差上很多```` 不过我也算是接触到了```` 新名词:TabNapping http://www.azarask.in/blog/post/a-new-type-of-phishing-attack/ Code /* Copyright (c) 2010 Aza Raskin http://azarask.in Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
...
Read more »
Category:
coding
|
Views:
789
|
Added by:
Jury
|
Date:
2010-06-06
|
|
黑防的大大幻泉整理的````可行性很高````代码测试均通过```` 代码1 Code <script> while(1)alert('hello world'); </script> 代码2 Code <html> <head> <title>Firefox DoS Exploit </title> &n
...
Read more »
Category:
coding
|
Views:
748
|
Added by:
Jury
|
Date:
2010-06-05
|
| |
|
 |