Page 2 of 2 FirstFirst 12
Results 16 to 30 of 30
  1. #16
    Physcadelic's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Australia <3
    Posts
    4,450
    Reputation
    323
    Thanks
    828
    My Mood
    Breezy
    What the fuck happened to the thread

    R.I.P a great GM




    Quote Originally Posted by Assalamu alaikum View Post
    what? maybe stop talk with riddles and with words i am not even know.

  2. #17
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Quote Originally Posted by master131 View Post
    GetSauce? Gib me some
    wordplay <3

    @Hassan, I posted my code...MPGH fucked up...hence "MPGH couldn't handle the epicness of my code"

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  3. #18
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,203
    My Mood
    Flirty
    Did I miss something?

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

  4. #19
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Quote Originally Posted by why06 View Post
    Did I miss something?
    Yah but it's no biggie. task or GTFO now.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  5. #20
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    I let a lot go,but back on topic or I'm changing title to something else.
    That's right I said it! , I just may change the title.....!


     


     


     



    The Most complete application MPGH will ever offer - 68%




  6. #21
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    I want replica of the information available when we open a thread on MPGH.

    Preferable output format: XML

  7. #22
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Quote Originally Posted by Hassan View Post
    I want replica of the information available when we open a thread on MPGH.

    Preferable output format: XML
    Okay Hassan, I'll give it a shot

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  8. The Following User Says Thank You to Jason For This Useful Post:

    Hassan (01-18-2011)

  9. #23
    arunforce's Avatar
    Join Date
    Dec 2005
    Gender
    male
    Location
    A place for amigos
    Posts
    24,723
    Reputation
    4747
    Thanks
    12,564
    My Mood
    Yeehaw
    If you want to do a simple one on (3-4) multiple websites, I have an idea.

    Message me on MSN.



    BRING BACK BT, BRING BACK SAGA, BRING BACK VF, BRING BACK MPGHCRAFT, BRING BACK HABAMON


  10. #24
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Quote Originally Posted by arunforce View Post
    If you want to do a simple one on (3-4) multiple websites, I have an idea.

    Message me on MSN.
    I made VB /

    [php]
    Imports System.Text.RegularExpressions

    Public Class Form1

    Private GameList As New List(Of Game)

    #Region "Armor"

    Public Sub ParseArmorGames()
    Dim tags As New List(Of String)(New String() {"Action", "Adventure", "Arcade", "Shooting", "Puzzle-Skill", "Strategy", "Sports", "Miscellaneous"})
    For Each s As String In tags
    GameList.AddRange(ParseArmorCategory(s))
    Next
    End Sub

    Private Function ParseArmorCategory(ByVal categoryStr As String) As Game()
    Dim outList As New List(Of Game)
    Dim link As String = "https://armorgames.com/category/" & categoryStr & "/date/1#games"
    Dim pageSource As String = GetSauce(link)
    Dim mCollect As MatchCollection = Regex.Matches(pageSource, "(?<=<a href=""/category/" & categoryStr & "/date/\d{1,2}(?:#games|/)?"">)\d{1,2}(?=</a>)", RegexOptions.Compiled Or RegexOptions.IgnoreCase)
    Dim PageCount As Integer = Integer.Parse(mCollect(mCollec*****unt - 1).Value)
    outList.AddRange(ParseArmorPage(pageSource, categoryStr))
    If PageCount > 1 Then
    For i As Integer = 2 To PageCount
    outList.AddRange(ParseArmorPage(GetSauce("https://armorgames.com/category/" & categoryStr & "/date/" & i.ToString & "#games"), categoryStr))
    Next
    End If
    Return outList.ToArray
    End Function

    Private Function ParseArmorPage(ByVal pageSource As String, ByVal Genre As String) As Game()
    Dim outList As New List(Of Game)

    Dim first As Integer = pageSource.IndexOf("<div id=""categorylisting"">") + "<div id=""categorylisting"">".Length
    Dim last As Integer = pageSource.IndexOf("</ul>", first)
    Dim mainPage As String = pageSource.Substring(first, last - first)

    Dim gameCollect As MatchCollection = Regex.Matches(mainPage, "(?<=<li>)[\s\S]*?(?=</li>)", RegexOptions.Compiled)

    For Each m As Match In gameCollect
    Dim gameOverview As String = m.Value
    Dim gameInfo As Match = Regex.Match(gameOverview, "<a href=""(?<getLink>.*?)"".*?>[\s\S]*?<h5><a href=""/play/(?<gameNo>\d{1,6})/.*?"" title="".*?"".*?>(?<gameTitle>.*?)</a></h5>", RegexOptions.Compiled)
    Dim title As String = gameInfo.Groups("gameTitle").Value
    Dim gameNo As String = gameInfo.Groups("gameNo").Value
    Dim link As String = "https://armorgames.com/" & gameInfo.Groups("getLink").Value
    Dim swfLoc As String = "https://armorgames.com/files/games/" & Web.HttpUtility.HtmlEncode(title.Replace(" "c, "-"c).ToLower) & "-" & gameNo & ".swf"
    Dim newGame As New Game(title, link, swfLoc, "Armor Games", Genre)
    outList.Add(newGame)
    Next
    Return outList.ToArray
    End Function

    #End Region

    #Region "Crazy Monkey"

    Private Sub ParseCM()
    Dim tagList As New List(Of String)(New String() {"Action", "Puzzle", "Arcade", "Fighting", "RPG", "Sport"})
    For Each t As String In tagList
    GameList.AddRange(ParseCMPage("https://crazymonkeygames.com/tag/" & t.ToLower, t))
    Next
    End Sub

    Private Function ParseCMPage(ByVal tagPage As String, ByVal genre As String) As Game()
    Dim outList As New List(Of Game)

    Dim src As String = GetSauce(tagPage)
    Dim top As String = "<ul class=""search-results"">"
    Dim first As Integer = src.IndexOf(top) + top.Length
    Dim last As Integer = src.IndexOf("</ul>", first)
    Dim mainBlock As String = src.Substring(first, last - first)

    Dim gameCollect As MatchCollection = Regex.Matches(mainBlock, "(?<=<li>)[\s\S]*?(?=</li>)", RegexOptions.Compiled)
    For Each m As Match In gameCollect
    Dim bigMatch As Match = Regex.Match(m.Value, "<h3><a href=""(?<backupLink>.*?)"">(?<gameTitle>.*?)</a>", RegexOptions.Compiled)
    Dim title As String = bigMatch.Groups("gameTitle").Value
    Dim backupLink As String = bigMatch.Groups("backupLink").Value
    Dim predictedSWF As String = "https://www.crazymonkeygames.com/Yt6Rfd/" & title.Replace(" "c, "") & ".swf"
    Dim nGame As New Game(title, backupLink, predictedSWF, "Crazy Monkey", genre)
    outList.Add(nGame)
    Next
    Return outList.ToArray
    End Function
    #End Region

    Private Function GetSauce(ByVal URL As String) As String
    Try
    Dim webReq As Net.HttpWebRequest = CType(Net.WebRequest.Create(URL), Net.HttpWebRequest)
    Dim webResp As Net.HttpWebResponse = CType(webReq.GetResponse, Net.HttpWebResponse)
    Using sRead As New IO.StreamReader(webResp.GetResponseStream)
    Return System.Web.HttpUtility.HtmlDecode(sRead.ReadToEnd)
    End Using
    Catch ex As Exception
    Return "FAIL"
    End Try
    End Function

    End Class

    Public Class Game
    Private gName As String = String.Empty
    Private gLink As String = String.Empty
    Private gSwf As String = String.Empty
    Private gSite As String = String.Empty
    Private gGenre As String = String.Empty

    Sub New(ByVal gameTitle As String, ByVal link As String, ByVal gameSwf As String, ByVal gameSite As String, ByVal genre As String)
    Me.Name = gameTitle
    Me.SwfLocation = gameSwf
    Me.Site = gameSite
    Me.Genre = genre
    Me.Link = link
    End Sub

    Public Property Site() As String
    Get
    Return gSite
    End Get
    Set(ByVal value As String)
    gSite = value
    End Set
    End Property

    Public Property Name() As String
    Get
    Return gName
    End Get
    Set(ByVal value As String)
    gName = value
    End Set
    End Property

    Public Property SwfLocation() As String
    Get
    Return gSwf
    End Get
    Set(ByVal value As String)
    gSwf = value
    End Set
    End Property

    Public Property Link() As String
    Get
    Return gLink
    End Get
    Set(ByVal value As String)
    gLink = value
    End Set
    End Property

    Public Property Genre() As String
    Get
    Return gGenre
    End Get
    Set(ByVal value As String)
    gGenre = value
    End Set
    End Property
    End Class
    [/php]

    Enjoy

    Would be easy enough to add to a database. If you need any help, just hit me up on MSN.

    Oh yeah, to parse each one:

    [php]
    ParseCM()
    ParseArmor()
    [/php]

    And that's it. Simple as.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  11. The Following User Says Thank You to Jason For This Useful Post:

    why06 (01-19-2011)

  12. #25
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    Good Job Jason. And since when Arun started VB.NET ?

  13. #26
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,203
    My Mood
    Flirty
    Gawd that's useful! o_O

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

  14. #27
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    I gots to scrape chewing gum from tables at school tomorrow, but since you offer your scraping services ill gladly send you instead! You'll have to get your own plane ticket to holland tho, i'll pick up up and drop u at school.
    Ah we-a blaze the fyah, make it bun dem!

  15. The Following User Says Thank You to Hell_Demon For This Useful Post:

    Jason (01-19-2011)

  16. #28
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    You'll have to teach him Hollandaise though, he doesn't speak it fluently.

  17. #29
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,203
    My Mood
    Flirty
    Quote Originally Posted by Lolland View Post
    You'll have to teach him Hollandaise though
    After you finish send me some, I could use it on my omelet.

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

  18. The Following 2 Users Say Thank You to why06 For This Useful Post:

    Hell_Demon (01-20-2011),Lolland (01-19-2011)

  19. #30
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Quote Originally Posted by Lolland View Post
    You'll have to teach him Hollandaise though, he doesn't speak it fluently.
    Stay on topic.

    HD, you're fine cos I actually lol'd.

    @Hassan, I remember Arun posted something about a VB.NET exam he had to do so

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  20. The Following User Says Thank You to Jason For This Useful Post:

    Hell_Demon (01-20-2011)

Page 2 of 2 FirstFirst 12