.NET

Skype4COMLib Skype API Auto Response in C#

Submitted by Yorkiebar on

Introduction:

This tutorial is on how to use the Skype4ComLib Libaries in C# .NET to access our Skype program on our computer.

SKYPE4COMLib:

To use the Skype libaries you need to first obtain them via .NET Framework installation of 4.0 or later. I am using 4.5 for this tutorial, then you want to create a new Console/Form application in Visual Studio for a C# application. Right click on your application in the 'Solution/Package Explorer', click on 'Add', then 'Reference', select 'COM' from the side tabs, and choose 'SKYPE4COMLib Libary'.

Buffer Overflow Attack Protection in C# .NET

Submitted by Yorkiebar on

Introduction:

This tutorial is on how to secure your application in C# from Buffer Overflow Attacks.

What's a Buffer Overflow Attack? (BTA)

A buffer overflow attack is when the user purposefully enters too much data in such a way that the program will spill the data across different memory locations which will cause unexpected behaviour such as opening another vulnerability for the attack to exploit. This works through the use of user input.

Switch Statements in C#

Submitted by Yorkiebar on

Introduction:

This tutorial is on how to use Switch statements in C#.

Switch:

A switch statement allows a single variable or static piece of data to be checked for mulitple conditions, essentially like a long 'else if' statement but a lot more compact and with slightly more flexability.

Case:

To use a switch statement there are a few other keywords we need to learn first, one of which is 'case'. Case is a possible value of the variable or value being 'switched', this must be of the same data type as the value being switched and must be followed by a colon. Break

Drawing Strings via the Graphics Object in C#

Submitted by Yorkiebar on

Introduction:

This tutorial is on how to draw text in .NET (C#/Visual Basic).

Labels, Textboxes?

I'm sure if you've not looked in to the 'graphics' (etc) objects in the .NET framework, you're thinking, why don't we just use labels or textboxes with their read-only property enabled. Labels and textboxes both have a surrounding area around the text which are both of different colours (however we could change this to the form background colour to give the effect of the backgrounds being removed), but would we create extra controls (labels, and textboxes) when we don't need to?

How To Build a Stub in Visual Basic .NET

Submitted by Yorkiebar on
Introduction: This tutorial is on how to create a stub in Visual Basic .NET. Builder: This is a follow on tutorial from my previous tutorial on how to create a builder in Visual Basic .NET which allows a user to input custom settings to their liking in to an application (the builder) which will then put those settings via the controls (textbox and checkbox in that example) in to the generated stub.

Basic Notepad in Visual Basic .NET

Submitted by Yorkiebar on
Introduction: This tutorial is on how to make a simple Notepad text editor in Visual Basic .NET. Controls: The controls we will need are; Button, button1, Save File Button, button2, Open File Textbox, textbox1, File Contents Imports: Before we begin, you need to import System.IO to allow our program to read and write to/from files.

Call Function by String Name in Visual Basic .NET

Submitted by Yorkiebar on
Introduction: This tutorial is on how to run a function using it's reference name as a string in Visual Basic .NET. Built In: Luckily enough, the .NET framework has a built in function which allows an object, string function name, invoke type, and parameters to be called - this function is named 'CallByName'.

Using Base64 Encryption for PHP APIs

Submitted by Yorkiebar on
Introduction: This tutorial is on how to use encryption to transfer data securely, or at least more seucrely than plain text, from a Visual Basic application (or other source) to a PHP API. Why Cryptography? Cryptography should be used for all sensitive information being used in public release applications, or if the data is sent cross-networks.

Uploading POST Data to PHP in Visual Basic.NET

Submitted by Yorkiebar on
Introduction: This tutorial is on how to upload POST data to a PHP file on a web server or localhost through Visual Basic .NET. Why POST? POST is the method used to upload sensitive data such as passwords, as opposed to using the PHP GET method which will simply show all data in the URL bar; GET - http://www.website.com/page.php?password=ThisIsMyGETPassword POST - http://www.website.com/page.php Both example sites would receive the same information, but the POST one is undercover and therefore slightly more secure. Why Only Slightly More Secure?