Click here to Skip to main content
15,885,366 members
Articles / Programming Languages / C#

Steganography 17 - FTP Through a Proxy

Rate me:
Please Sign up or sign in to vote.
4.85/5 (29 votes)
16 Nov 2007CPOL10 min read 75.5K   934   65  
Transporting piggyback data in FTP transfers
namespace SteganoFTP
{
	partial class MainForm
	{
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}

		#region Windows Form Designer generated code

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.btnPut = new System.Windows.Forms.Button();
			this.btnGet = new System.Windows.Forms.Button();
			this.label1 = new System.Windows.Forms.Label();
			this.txtSendWithFile = new System.Windows.Forms.TextBox();
			this.txtReceivedWithFile = new System.Windows.Forms.TextBox();
			this.label2 = new System.Windows.Forms.Label();
			this.grpConnection = new System.Windows.Forms.GroupBox();
			this.btnConnect = new System.Windows.Forms.Button();
			this.txtPassword = new System.Windows.Forms.TextBox();
			this.label6 = new System.Windows.Forms.Label();
			this.txtUserName = new System.Windows.Forms.TextBox();
			this.label5 = new System.Windows.Forms.Label();
			this.numServerPort = new System.Windows.Forms.NumericUpDown();
			this.label4 = new System.Windows.Forms.Label();
			this.txtServerName = new System.Windows.Forms.TextBox();
			this.label3 = new System.Windows.Forms.Label();
			this.pnlFiles = new System.Windows.Forms.Panel();
			this.fsbRemote = new SteganoFTP.FileSelectBox();
			this.fsbLocal = new SteganoFTP.FileSelectBox();
			this.grpConnection.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.numServerPort)).BeginInit();
			this.pnlFiles.SuspendLayout();
			this.SuspendLayout();
			// 
			// btnPut
			// 
			this.btnPut.Enabled = false;
			this.btnPut.Location = new System.Drawing.Point(271, 109);
			this.btnPut.Name = "btnPut";
			this.btnPut.Size = new System.Drawing.Size(41, 37);
			this.btnPut.TabIndex = 2;
			this.btnPut.Text = ">";
			this.btnPut.UseVisualStyleBackColor = true;
			this.btnPut.Click += new System.EventHandler(this.btnPut_Click);
			// 
			// btnGet
			// 
			this.btnGet.Enabled = false;
			this.btnGet.Location = new System.Drawing.Point(271, 152);
			this.btnGet.Name = "btnGet";
			this.btnGet.Size = new System.Drawing.Size(41, 37);
			this.btnGet.TabIndex = 3;
			this.btnGet.Text = "<";
			this.btnGet.UseVisualStyleBackColor = true;
			this.btnGet.Click += new System.EventHandler(this.btnGet_Click);
			// 
			// label1
			// 
			this.label1.AutoSize = true;
			this.label1.Location = new System.Drawing.Point(4, 283);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(70, 13);
			this.label1.TabIndex = 4;
			this.label1.Text = "Send with file";
			// 
			// txtSendWithFile
			// 
			this.txtSendWithFile.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
						| System.Windows.Forms.AnchorStyles.Left)));
			this.txtSendWithFile.Location = new System.Drawing.Point(6, 299);
			this.txtSendWithFile.Multiline = true;
			this.txtSendWithFile.Name = "txtSendWithFile";
			this.txtSendWithFile.ScrollBars = System.Windows.Forms.ScrollBars.Both;
			this.txtSendWithFile.Size = new System.Drawing.Size(253, 163);
			this.txtSendWithFile.TabIndex = 5;
			this.txtSendWithFile.TextChanged += new System.EventHandler(this.txtSendWithFile_TextChanged);
			// 
			// txtReceivedWithFile
			// 
			this.txtReceivedWithFile.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
						| System.Windows.Forms.AnchorStyles.Left)
						| System.Windows.Forms.AnchorStyles.Right)));
			this.txtReceivedWithFile.Location = new System.Drawing.Point(321, 299);
			this.txtReceivedWithFile.Multiline = true;
			this.txtReceivedWithFile.Name = "txtReceivedWithFile";
			this.txtReceivedWithFile.ReadOnly = true;
			this.txtReceivedWithFile.ScrollBars = System.Windows.Forms.ScrollBars.Both;
			this.txtReceivedWithFile.Size = new System.Drawing.Size(253, 163);
			this.txtReceivedWithFile.TabIndex = 7;
			// 
			// label2
			// 
			this.label2.AutoSize = true;
			this.label2.Location = new System.Drawing.Point(318, 283);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(91, 13);
			this.label2.TabIndex = 6;
			this.label2.Text = "Received with file";
			// 
			// grpConnection
			// 
			this.grpConnection.Controls.Add(this.btnConnect);
			this.grpConnection.Controls.Add(this.txtPassword);
			this.grpConnection.Controls.Add(this.label6);
			this.grpConnection.Controls.Add(this.txtUserName);
			this.grpConnection.Controls.Add(this.label5);
			this.grpConnection.Controls.Add(this.numServerPort);
			this.grpConnection.Controls.Add(this.label4);
			this.grpConnection.Controls.Add(this.txtServerName);
			this.grpConnection.Controls.Add(this.label3);
			this.grpConnection.Location = new System.Drawing.Point(8, 4);
			this.grpConnection.Name = "grpConnection";
			this.grpConnection.Size = new System.Drawing.Size(579, 74);
			this.grpConnection.TabIndex = 8;
			this.grpConnection.TabStop = false;
			this.grpConnection.Text = "Connection";
			// 
			// btnConnect
			// 
			this.btnConnect.Location = new System.Drawing.Point(473, 17);
			this.btnConnect.Name = "btnConnect";
			this.btnConnect.Size = new System.Drawing.Size(96, 49);
			this.btnConnect.TabIndex = 9;
			this.btnConnect.Text = "Connect";
			this.btnConnect.UseVisualStyleBackColor = true;
			this.btnConnect.Click += new System.EventHandler(this.btnConnect_Click);
			// 
			// txtPassword
			// 
			this.txtPassword.Location = new System.Drawing.Point(283, 46);
			this.txtPassword.Name = "txtPassword";
			this.txtPassword.Size = new System.Drawing.Size(132, 20);
			this.txtPassword.TabIndex = 8;
			this.txtPassword.Text = "test";
			// 
			// label6
			// 
			this.label6.AutoSize = true;
			this.label6.Location = new System.Drawing.Point(224, 48);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(53, 13);
			this.label6.TabIndex = 7;
			this.label6.Text = "Password";
			// 
			// txtUserName
			// 
			this.txtUserName.Location = new System.Drawing.Point(75, 48);
			this.txtUserName.Name = "txtUserName";
			this.txtUserName.Size = new System.Drawing.Size(132, 20);
			this.txtUserName.TabIndex = 6;
			this.txtUserName.Text = "coco";
			// 
			// label5
			// 
			this.label5.AutoSize = true;
			this.label5.Location = new System.Drawing.Point(38, 49);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(29, 13);
			this.label5.TabIndex = 5;
			this.label5.Text = "User";
			// 
			// numServerPort
			// 
			this.numServerPort.Location = new System.Drawing.Point(283, 19);
			this.numServerPort.Maximum = new decimal(new int[] {
            99999999,
            0,
            0,
            0});
			this.numServerPort.Name = "numServerPort";
			this.numServerPort.Size = new System.Drawing.Size(49, 20);
			this.numServerPort.TabIndex = 4;
			this.numServerPort.Value = new decimal(new int[] {
            42,
            0,
            0,
            0});
			// 
			// label4
			// 
			this.label4.AutoSize = true;
			this.label4.Location = new System.Drawing.Point(251, 20);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(26, 13);
			this.label4.TabIndex = 2;
			this.label4.Text = "Port";
			// 
			// txtServerName
			// 
			this.txtServerName.Location = new System.Drawing.Point(75, 20);
			this.txtServerName.Name = "txtServerName";
			this.txtServerName.Size = new System.Drawing.Size(132, 20);
			this.txtServerName.TabIndex = 1;
			this.txtServerName.Text = "192.168.120.254";
			// 
			// label3
			// 
			this.label3.AutoSize = true;
			this.label3.Location = new System.Drawing.Point(7, 20);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(61, 13);
			this.label3.TabIndex = 0;
			this.label3.Text = "FTP-Server";
			// 
			// pnlFiles
			// 
			this.pnlFiles.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
						| System.Windows.Forms.AnchorStyles.Left)
						| System.Windows.Forms.AnchorStyles.Right)));
			this.pnlFiles.Controls.Add(this.fsbRemote);
			this.pnlFiles.Controls.Add(this.fsbLocal);
			this.pnlFiles.Controls.Add(this.txtReceivedWithFile);
			this.pnlFiles.Controls.Add(this.btnPut);
			this.pnlFiles.Controls.Add(this.label2);
			this.pnlFiles.Controls.Add(this.btnGet);
			this.pnlFiles.Controls.Add(this.txtSendWithFile);
			this.pnlFiles.Controls.Add(this.label1);
			this.pnlFiles.Enabled = false;
			this.pnlFiles.Location = new System.Drawing.Point(8, 84);
			this.pnlFiles.Name = "pnlFiles";
			this.pnlFiles.Size = new System.Drawing.Size(589, 468);
			this.pnlFiles.TabIndex = 9;
			// 
			// fsbRemote
			// 
			this.fsbRemote.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
						| System.Windows.Forms.AnchorStyles.Right)));
			this.fsbRemote.Caption = "Remote folder";
			this.fsbRemote.IsLocal = false;
			this.fsbRemote.Location = new System.Drawing.Point(318, 3);
			this.fsbRemote.Name = "fsbRemote";
			this.fsbRemote.SelectedDirectoryFullName = "D:\\Projekte\\C\\SteganoFTP";
			this.fsbRemote.Size = new System.Drawing.Size(266, 277);
			this.fsbRemote.TabIndex = 1;
			this.fsbRemote.SelectedFileChanged += new System.EventHandler(this.fsbRemote_SelectedFileChanged);
			this.fsbRemote.ActivateRemoteFile += new System.EventHandler(this.fsbRemote_ActivateRemoteFile);
			this.fsbRemote.ListRemoteFiles += new System.EventHandler(this.fsbRemote_ListRemoteFiles);
			// 
			// fsbLocal
			// 
			this.fsbLocal.Caption = "Local folder";
			this.fsbLocal.IsLocal = true;
			this.fsbLocal.Location = new System.Drawing.Point(3, 3);
			this.fsbLocal.Name = "fsbLocal";
			this.fsbLocal.Size = new System.Drawing.Size(262, 282);
			this.fsbLocal.TabIndex = 0;
			this.fsbLocal.SelectedFileChanged += new System.EventHandler(this.fsbLocal_SelectedFileChanged);
			// 
			// MainForm
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.ClientSize = new System.Drawing.Size(597, 553);
			this.Controls.Add(this.pnlFiles);
			this.Controls.Add(this.grpConnection);
			this.Name = "MainForm";
			this.Text = "SteganoFTP Client";
			this.grpConnection.ResumeLayout(false);
			this.grpConnection.PerformLayout();
			((System.ComponentModel.ISupportInitialize)(this.numServerPort)).EndInit();
			this.pnlFiles.ResumeLayout(false);
			this.pnlFiles.PerformLayout();
			this.ResumeLayout(false);

		}

		#endregion

		private FileSelectBox fsbLocal;
		private FileSelectBox fsbRemote;
		private System.Windows.Forms.Button btnPut;
		private System.Windows.Forms.Button btnGet;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox txtSendWithFile;
		private System.Windows.Forms.TextBox txtReceivedWithFile;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.GroupBox grpConnection;
		private System.Windows.Forms.NumericUpDown numServerPort;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.TextBox txtServerName;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.TextBox txtPassword;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.TextBox txtUserName;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Button btnConnect;
		private System.Windows.Forms.Panel pnlFiles;

	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Germany Germany
Corinna lives in Hanover/Germany and works as a C# developer.

Comments and Discussions